1 |
cb15593b
|
Cajova-Houba
|
<?php
|
2 |
|
|
|
3 |
|
|
/*
|
4 |
|
|
|--------------------------------------------------------------------------
|
5 |
|
|
| Application Routes
|
6 |
|
|
|--------------------------------------------------------------------------
|
7 |
|
|
|
|
8 |
|
|
| Here is where you can register all of the routes for an application.
|
9 |
|
|
| It is a breeze. Simply tell Lumen the URIs it should respond to
|
10 |
|
|
| and give it the Closure to call when that URI is requested.
|
11 |
|
|
|
|
12 |
|
|
*/
|
13 |
|
|
|
14 |
|
|
$app->get('/', function () use ($app) {
|
15 |
|
|
return $app->version();
|
16 |
|
|
});
|
17 |
|
|
|
18 |
|
|
$app->get('/hello', function() {
|
19 |
|
|
return "world!";
|
20 |
|
|
});
|
21 |
|
|
|
22 |
|
|
$app->get('/location', 'LocationController@getLocation');
|
23 |
|
|
|
24 |
|
|
$app->get('/location/{id}', 'LocationController@findById');
|