mabasic / mariobasic-n7

My personal website built with Phel.
https://mariobasic.com
13 stars 0 forks source link

Add redirects from previous website #5

Open mabasic opened 3 years ago

mabasic commented 3 years ago

Need to add:

Route::get('posts/{slug?}', 'RedirectController@toBook')->where('slug', '.*');
Route::get('lessons/{slug?}', 'RedirectController@toBook')->where('slug', '.*');
Route::get('tutorials/{slug?}', 'RedirectController@toBook')->where('slug', '.*');
Route::get('series/{slug?}', 'RedirectController@toBook')->where('slug', '.*');
Route::get('index/{slug?}', 'RedirectController@toBook')->where('slug', '.*');

This requires implementing regex of sort into routes.

mabasic commented 2 years ago

Maybe add this when I implement the router from Phel?