mirror of
https://github.com/devfake/flox.git
synced 2024-11-16 07:02:31 +01:00
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
|
|
Route::group(['prefix' => 'api'], function() {
|
|
Route::post('/login', 'UserController@login');
|
|
Route::get('/logout', 'UserController@logout');
|
|
|
|
Route::get('/items/{orderBy}', 'ItemController@items');
|
|
Route::get('/search-items', 'ItemController@search');
|
|
|
|
Route::get('/suggestions/{tmdbID}', 'TMDBController@suggestions');
|
|
Route::get('/trending', 'TMDBController@trending');
|
|
Route::get('/upcoming', 'TMDBController@upcoming');
|
|
|
|
Route::group(['middleware' => 'auth'], function() {
|
|
Route::get('/export', 'ItemController@export');
|
|
Route::post('/import', 'ItemController@import');
|
|
|
|
Route::get('/get-userdata', 'UserController@userData');
|
|
Route::patch('/change-userdata', 'UserController@changeUserData');
|
|
|
|
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?}', function($uri = null) {
|
|
return view('app');
|
|
})->where('uri', '(.*)');
|