25 lines
735 B
PHP
Raw Normal View History

2021-10-08 20:44:34 +09:00
<?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');
});
2021-10-11 19:47:34 -04:00
$router->get('/api/locales', 'ItemController@getLocales');
$router->get('/api/refresh', 'ItemController@refreshAllCache');
2021-10-12 00:40:07 -04:00
$router->post('/api/search', 'ItemController@search');
2021-10-12 00:46:13 -04:00
$router->get('/api/item', 'ItemController@getItem');
2021-10-12 00:40:07 -04:00