bfef92da27
Hello, I'm adding the whole https://items.sp-tarkov.com code base as well as the drone pipeline to deploy it. Please **double check *thoroughly* every** to ensure it matches the server architecture and configuration. Reviewed-on: SPT-AKI/Website#9 Co-authored-by: shirito <shirito@noreply.dev.sp-tarkov.com> Co-committed-by: shirito <shirito@noreply.dev.sp-tarkov.com>
28 lines
866 B
PHP
28 lines
866 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->group(['prefix' => 'api'], function () use ($router) {
|
|
$router->get('locales', 'ItemController@getLocales');
|
|
$router->get('refresh', 'ItemController@refreshAllCache');
|
|
$router->post('search', 'ItemController@search');
|
|
$router->get('item/hierarchy', 'ItemController@getHierarchy');
|
|
$router->get('item', 'ItemController@getItem');
|
|
});
|
|
|