1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-16 15:12:32 +01:00
flox/server/app/Http/routes.php
2015-07-27 20:49:37 +02:00

19 lines
614 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');
});
Route::get('/{uri}', function() {
return view('app');
})->where('uri', '(.*)');