mirror of
https://github.com/devfake/flox.git
synced 2024-11-16 15:12:32 +01:00
21 lines
657 B
PHP
21 lines
657 B
PHP
<?php
|
|
|
|
Route::group(['prefix' => 'api'], function() {
|
|
|
|
get('all-categories', 'APIController@allCategories');
|
|
get('home-items/{category}/{orderBy}', 'APIController@homeItems');
|
|
get('category-items/{category}/{orderBy}', 'APIController@categoryItems');
|
|
//get('item/{slug}', 'APIController@slugItem');
|
|
|
|
get('search/flox/{title}', 'APIController@searchFloxByTitle');
|
|
get('search/tmdb/{title}', 'APIController@searchTMDBByTitle');
|
|
//get('search/tmdb/id/{id}', 'APIController@searchTMDBByID');
|
|
|
|
post('new', 'APIController@newItem');
|
|
|
|
});
|
|
|
|
Route::get('/{uri}', function() {
|
|
return view('app');
|
|
})->where('uri', '(.*)');
|