1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/backend/routes/web.php
2016-11-30 11:39:47 +01:00

38 lines
1.5 KiB
PHP

<?php
Route::group(['prefix' => 'api'], function() {
Route::post('/login', 'UserController@login');
Route::get('/logout', 'UserController@logout');
Route::get('/items/{type}/{orderBy}', 'ItemController@items');
Route::get('/search-items', 'ItemController@search');
Route::get('/suggestions/{tmdbID}/{mediaType}', 'TMDBController@suggestions');
Route::get('/trending', 'TMDBController@trending');
Route::get('/upcoming', 'TMDBController@upcoming');
Route::get('/settings', 'SettingController@settings');
Route::group(['middleware' => 'auth'], function() {
Route::get('/export', 'SettingController@export');
Route::post('/import', 'SettingController@import');
Route::get('/check-update', 'SettingController@checkUpdate');
Route::get('/sync-scout', 'SettingController@syncScout');
Route::get('/update-genre', 'SettingController@updateGenre');
Route::patch('/settings', 'SettingController@changeSettings');
Route::patch('/userdata', 'UserController@changeUserData');
Route::patch('/set-seen/{id}', 'ItemController@setSeen');
Route::get('/episodes/{tmdb_id}', 'ItemController@episodes');
Route::get('/search-tmdb', 'TMDBController@search');
Route::post('/add', 'ItemController@add');
Route::patch('/change-rating/{itemID}', 'ItemController@changeRating');
Route::delete('/remove/{itemID}', 'ItemController@remove');
});
});
Route::get('/{uri?}', 'HomeController@app')->where('uri', '(.*)');