...
This commit is contained in:
@@ -141,7 +141,7 @@ Route::group(["middleware" => "theme"], function() {
|
||||
#Route::get('rulez', 'rulezController@index')->middleware('auth');
|
||||
Route::get('todo', function() { return view('todo'); })->middleware('auth');
|
||||
Route::get('contact', function() { return view('contact'); });
|
||||
Route::get('change', function() { return view('change'); });
|
||||
//Route::get('change', function() { return view('change'); });
|
||||
#Route::get('terms', function() { return view('tos'); })->middleware('auth');
|
||||
Route::get('privacy', function() { return view('privacy'); });
|
||||
Route::get('marderchen', function() { return view('marder'); });
|
||||
@@ -154,6 +154,7 @@ Route::group(["middleware" => "theme"], function() {
|
||||
//'fav_count' => \App\Models\UserFavorite::count(),
|
||||
'latest_video' => \App\Models\Video::getLastId(),
|
||||
'newest_user' => \App\Models\User::orderBy('id', 'DESC')->first()->username,
|
||||
// this function heavily slows down the page load on /stats in prod. should be addressed some day
|
||||
'dirsize' => shell_exec("(du -sh " . public_path() . "/b | cut -f1)")
|
||||
]);
|
||||
})->middleware('auth');
|
||||
@@ -185,4 +186,9 @@ Route::group(["middleware" => "theme"], function() {
|
||||
##Category View
|
||||
Route::get('{shortname}', 'CategoryController@showVideo')->where('shortname', '[a-z][a-z0-9]+');
|
||||
Route::get('{shortname}/{id}', 'CategoryController@showVideo')->where(['shortname' => '[a-z][a-z0-9]+', 'id' => '[0-9]+']);
|
||||
|
||||
##Tag View anybody?
|
||||
Route::get('t/{tag}', 'TagviewController@tagview')->where('tag', '[a-z][a-z0-9]+');
|
||||
Route::get('t/{tag}/{id}', 'TagviewController@tagview')->where(['tag' => '[a-z][a-z0-9]+', 'id' => '[0-9]+']);
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user