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

35 lines
1.2 KiB
PHP
Raw Normal View History

2016-10-10 10:57:39 +02:00
<?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');
2016-10-13 11:11:10 +02:00
Route::get('/suggestions/{tmdbID}', 'TMDBController@suggestions');
2016-10-14 12:15:54 +02:00
Route::get('/trending', 'TMDBController@trending');
2016-10-14 13:25:52 +02:00
Route::get('/upcoming', 'TMDBController@upcoming');
2016-10-19 09:53:35 +02:00
Route::get('/settings', 'SettingController@settings');
2016-10-10 10:57:39 +02:00
Route::group(['middleware' => 'auth'], function() {
Route::get('/export', 'SettingController@export');
Route::post('/import', 'SettingController@import');
Route::get('/update-genre', 'SettingController@updateGenre');
Route::patch('/settings', 'SettingController@changeSettings');
2016-10-13 11:11:10 +02:00
Route::patch('/userdata', 'UserController@changeUserData');
2016-10-10 12:26:55 +02:00
2016-10-10 10:57:39 +02:00
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', '(.*)');