<?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.
|
*/

/*header("Access-Control-Allow-Origin: *");//jms added so that all origin/requester is permitted
header('Access-Control-Allow-Methods:  POST,GET,OPTIONS,PUT,DELETE'); //jms so the request POST, GET, OPTIONS, PUT from angular/ajax is permitted
header('Access-Control-Allow-Headers:  Content-Type, X-Auth-Token, Origin, Authorization'); //this is to make sure to */

$app->run();
