27 lines
808 B
PHP
27 lines
808 B
PHP
<?php
|
|
|
|
/** @var \Laravel\Lumen\Routing\Router $router */
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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.
|
|
|
|
|
*/
|
|
|
|
$router->get('/', function () {
|
|
return view('app');
|
|
});
|
|
|
|
$router->get('/api/locales', 'ItemController@getLocales');
|
|
$router->get('/api/refresh', 'ItemController@refreshAllCache');
|
|
$router->post('/api/search', 'ItemController@search');
|
|
|
|
$router->get('/api/item/{id}/{locale}', 'ItemController@getItem');
|
|
$router->get('/api/item/{id}', 'ItemController@getItem');
|
|
|