mirror of
https://gitlab.com/izyim/prototypes/lumen-microservices/microservice-products-api.git
synced 2026-08-19 12:24:17 +00:00
initial commit
This commit is contained in:
+9
-8
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
try {
|
||||
(new Dotenv\Dotenv(dirname(__DIR__)))->load();
|
||||
$dotenv = Dotenv\Dotenv::create(__DIR__ . '/..');
|
||||
$dotenv->load();
|
||||
} catch (Dotenv\Exception\InvalidPathException $e) {
|
||||
//
|
||||
}
|
||||
@@ -23,9 +24,9 @@ $app = new Laravel\Lumen\Application(
|
||||
dirname(__DIR__)
|
||||
);
|
||||
|
||||
$app->withFacades();
|
||||
$app->withFacades();
|
||||
|
||||
$app->withEloquent();
|
||||
$app->withEloquent();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -59,9 +60,9 @@ $app->singleton(
|
||||
|
|
||||
*/
|
||||
|
||||
$app->middleware([
|
||||
App\Http\Middleware\AuthenticateAccess::class
|
||||
]);
|
||||
$app->middleware([
|
||||
App\Http\Middleware\AuthenticateAccess::class
|
||||
]);
|
||||
|
||||
// $app->routeMiddleware([
|
||||
// 'auth' => App\Http\Middleware\Authenticate::class,
|
||||
@@ -96,7 +97,7 @@ $app->singleton(
|
||||
$app->router->group([
|
||||
'namespace' => 'App\Http\Controllers',
|
||||
], function ($router) {
|
||||
require __DIR__.'/../routes/web.php';
|
||||
require __DIR__ . '/../routes/web.php';
|
||||
});
|
||||
|
||||
return $app;
|
||||
|
||||
Reference in New Issue
Block a user