jikan-rest/public/index.php

34 lines
997 B
PHP
Raw Normal View History

2018-04-21 12:59:48 +05:00
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| First we need to get an application instance. This creates an instance
| of the application / container and bootstraps the application so it
| is ready to receive HTTP / Console requests from the environment.
|
*/
$app = require __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
2018-09-02 16:51:08 +05:00
ob_start("ob_gzhandler");
2019-05-10 06:57:42 +05:00
if (!env('APP_DEBUG')) {
header("Content-Type: application/json");
}
2018-04-21 12:59:48 +05:00
$app->run();