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

21 lines
657 B
PHP
Raw Normal View History

2015-07-27 20:49:37 +02:00
<?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');
2015-07-28 19:05:15 +02:00
post('new', 'APIController@newItem');
2015-07-27 20:49:37 +02:00
});
Route::get('/{uri}', function() {
return view('app');
})->where('uri', '(.*)');