diff options
author | Camil Staps | 2016-01-04 15:12:59 +0100 |
---|---|---|
committer | Camil Staps | 2016-01-04 15:12:59 +0100 |
commit | 9c4afbed2310aa0c4679d11b9f568c234d202554 (patch) | |
tree | 65e8956b671239f2ec38789ce59a4cea9af0ebc2 /app/Http |
Initial commit
Diffstat (limited to 'app/Http')
-rw-r--r-- | app/Http/Controllers/Controller.php | 10 | ||||
-rw-r--r-- | app/Http/Middleware/ExampleMiddleware.php | 20 | ||||
-rw-r--r-- | app/Http/routes.php | 16 |
3 files changed, 46 insertions, 0 deletions
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..0ccb918 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,10 @@ +<?php + +namespace App\Http\Controllers; + +use Laravel\Lumen\Routing\Controller as BaseController; + +class Controller extends BaseController +{ + // +} diff --git a/app/Http/Middleware/ExampleMiddleware.php b/app/Http/Middleware/ExampleMiddleware.php new file mode 100644 index 0000000..166581c --- /dev/null +++ b/app/Http/Middleware/ExampleMiddleware.php @@ -0,0 +1,20 @@ +<?php + +namespace App\Http\Middleware; + +use Closure; + +class ExampleMiddleware +{ + /** + * Handle an incoming request. + * + * @param \Illuminate\Http\Request $request + * @param \Closure $next + * @return mixed + */ + public function handle($request, Closure $next) + { + return $next($request); + } +} diff --git a/app/Http/routes.php b/app/Http/routes.php new file mode 100644 index 0000000..5ecfcd1 --- /dev/null +++ b/app/Http/routes.php @@ -0,0 +1,16 @@ +<?php + +/* +|-------------------------------------------------------------------------- +| Application Routes +|-------------------------------------------------------------------------- +| +| Here is where you can register all of the routes for an application. +| It is a breeze. Simply tell Lumen the URIs it should respond to +| and give it the Closure to call when that URI is requested. +| +*/ + +$app->get('/', function () use ($app) { + return $app->welcome(); +}); |