mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
7544dbb688
* remove laravel scout * misc * refactor with helper function and php 7 * display and refresh relases * add translations * add migration test * remove refresh release dates * update production files * remove laravel scout fragments
43 lines
1.8 KiB
PHP
43 lines
1.8 KiB
PHP
<?php
|
|
|
|
Route::group(['prefix' => 'api'], function() {
|
|
Route::post('/login', 'UserController@login');
|
|
Route::get('/logout', 'UserController@logout');
|
|
|
|
Route::get('/episodes/{tmdb_id}', 'ItemController@episodes');
|
|
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@checkForUpdate');
|
|
Route::post('/fetch-files', 'SettingController@fetchFiles');
|
|
|
|
Route::patch('/update-genre', 'SettingController@updateGenre');
|
|
Route::patch('/settings', 'SettingController@updateSettings');
|
|
Route::patch('/update-alternative-titles/{tmdbId?}', 'ItemController@updateAlternativeTitles');
|
|
|
|
Route::get('/version', 'SettingController@getVersion');
|
|
Route::get('/userdata', 'UserController@getUserData');
|
|
|
|
Route::patch('/userdata', 'UserController@changeUserData');
|
|
Route::patch('/toggle-episode/{id}', 'ItemController@toggleEpisode');
|
|
Route::patch('/toggle-season', 'ItemController@toggleSeason');
|
|
|
|
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', '(.*)');
|