Fix unprefixed routes for laravel 9

This commit is contained in:
Kevin MacMartin 2022-05-23 21:29:51 -04:00
parent 31f9ceaffa
commit 3596ebcf73
3 changed files with 41 additions and 41 deletions

View file

@ -24,7 +24,7 @@ Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|--------------------------------------------------------------------------
*/
Route::get('/blog-entries', 'ApiController@getBlogEntries');
Route::get('/blog-entries', 'App\Http\Controllers\ApiController@getBlogEntries');
/*
|--------------------------------------------------------------------------
@ -32,5 +32,5 @@ Route::get('/blog-entries', 'ApiController@getBlogEntries');
|--------------------------------------------------------------------------
*/
Route::post('/contact-submit', 'ApiController@postContactSubmit');
Route::post('/subscription-submit', 'ApiController@postSubscriptionSubmit');
Route::post('/contact-submit', 'App\Http\Controllers\ApiController@postContactSubmit');
Route::post('/subscription-submit', 'App\Http\Controllers\ApiController@postSubscriptionSubmit');

View file

@ -21,7 +21,7 @@ use App\Dashboard;
*/
Route::auth([ 'register' => Dashboard::canRegister() ]);
Route::get('/logout', 'Auth\LoginController@logout');
Route::get('/logout', 'App\Http\Controllers\Auth\LoginController@logout');
/*
|--------------------------------------------------------------------------
@ -31,28 +31,28 @@ Route::get('/logout', 'Auth\LoginController@logout');
Route::group([ 'prefix' => 'dashboard' ], function() {
// Dashboard CMS
Route::get('/', 'DashboardController@getIndex');
Route::get('/view/{model}', 'DashboardController@getView');
Route::get('/edit/{model}', 'DashboardController@getEditList');
Route::get('/edit/{model}/{id}', 'DashboardController@getEditItem');
Route::get('/export/{model}', 'DashboardController@getExport');
Route::post('/reorder', 'DashboardController@postReorder');
Route::post('/update', 'DashboardController@postUpdate');
Route::post('/image-upload', 'DashboardController@postImageUpload');
Route::post('/file-upload', 'DashboardController@postFileUpload');
Route::delete('/delete', 'DashboardController@deleteDelete');
Route::delete('/image-delete', 'DashboardController@deleteImageDelete');
Route::delete('/file-delete', 'DashboardController@deleteFileDelete');
Route::get('/', 'App\Http\Controllers\DashboardController@getIndex');
Route::get('/view/{model}', 'App\Http\Controllers\DashboardController@getView');
Route::get('/edit/{model}', 'App\Http\Controllers\DashboardController@getEditList');
Route::get('/edit/{model}/{id}', 'App\Http\Controllers\DashboardController@getEditItem');
Route::get('/export/{model}', 'App\Http\Controllers\DashboardController@getExport');
Route::post('/reorder', 'App\Http\Controllers\DashboardController@postReorder');
Route::post('/update', 'App\Http\Controllers\DashboardController@postUpdate');
Route::post('/image-upload', 'App\Http\Controllers\DashboardController@postImageUpload');
Route::post('/file-upload', 'App\Http\Controllers\DashboardController@postFileUpload');
Route::delete('/delete', 'App\Http\Controllers\DashboardController@deleteDelete');
Route::delete('/image-delete', 'App\Http\Controllers\DashboardController@deleteImageDelete');
Route::delete('/file-delete', 'App\Http\Controllers\DashboardController@deleteFileDelete');
// Dashboard Settings
Route::get('/settings', 'DashboardController@getSettings');
Route::post('/user/password-update', 'DashboardController@postUserPasswordUpdate');
Route::post('/user/profile-update', 'DashboardController@postUserProfileUpdate');
Route::post('/user/profile-image-upload', 'DashboardController@postUserProfileImageUpload');
Route::delete('/user/profile-image-delete', 'DashboardController@deleteUserProfileImageDelete');
Route::get('/settings', 'App\Http\Controllers\DashboardController@getSettings');
Route::post('/user/password-update', 'App\Http\Controllers\DashboardController@postUserPasswordUpdate');
Route::post('/user/profile-update', 'App\Http\Controllers\DashboardController@postUserProfileUpdate');
Route::post('/user/profile-image-upload', 'App\Http\Controllers\DashboardController@postUserProfileImageUpload');
Route::delete('/user/profile-image-delete', 'App\Http\Controllers\DashboardController@deleteUserProfileImageDelete');
// Credits Page
Route::get('/credits', 'DashboardController@getCredits');
Route::get('/credits', 'App\Http\Controllers\DashboardController@getCredits');
});
/*

View file

@ -21,7 +21,7 @@ use App\Dashboard;
*/
Route::auth([ 'register' => Dashboard::canRegister() ]);
Route::get('/logout', 'Auth\LoginController@logout');
Route::get('/logout', 'App\Http\Controllers\Auth\LoginController@logout');
/*
|--------------------------------------------------------------------------
@ -31,28 +31,28 @@ Route::get('/logout', 'Auth\LoginController@logout');
Route::group([ 'prefix' => 'dashboard' ], function() {
// Dashboard CMS
Route::get('/', 'DashboardController@getIndex');
Route::get('/view/{model}', 'DashboardController@getView');
Route::get('/edit/{model}', 'DashboardController@getEditList');
Route::get('/edit/{model}/{id}', 'DashboardController@getEditItem');
Route::get('/export/{model}', 'DashboardController@getExport');
Route::post('/reorder', 'DashboardController@postReorder');
Route::post('/update', 'DashboardController@postUpdate');
Route::post('/image-upload', 'DashboardController@postImageUpload');
Route::post('/file-upload', 'DashboardController@postFileUpload');
Route::delete('/delete', 'DashboardController@deleteDelete');
Route::delete('/image-delete', 'DashboardController@deleteImageDelete');
Route::delete('/file-delete', 'DashboardController@deleteFileDelete');
Route::get('/', 'App\Http\Controllers\DashboardController@getIndex');
Route::get('/view/{model}', 'App\Http\Controllers\DashboardController@getView');
Route::get('/edit/{model}', 'App\Http\Controllers\DashboardController@getEditList');
Route::get('/edit/{model}/{id}', 'App\Http\Controllers\DashboardController@getEditItem');
Route::get('/export/{model}', 'App\Http\Controllers\DashboardController@getExport');
Route::post('/reorder', 'App\Http\Controllers\DashboardController@postReorder');
Route::post('/update', 'App\Http\Controllers\DashboardController@postUpdate');
Route::post('/image-upload', 'App\Http\Controllers\DashboardController@postImageUpload');
Route::post('/file-upload', 'App\Http\Controllers\DashboardController@postFileUpload');
Route::delete('/delete', 'App\Http\Controllers\DashboardController@deleteDelete');
Route::delete('/image-delete', 'App\Http\Controllers\DashboardController@deleteImageDelete');
Route::delete('/file-delete', 'App\Http\Controllers\DashboardController@deleteFileDelete');
// Dashboard Settings
Route::get('/settings', 'DashboardController@getSettings');
Route::post('/user/password-update', 'DashboardController@postUserPasswordUpdate');
Route::post('/user/profile-update', 'DashboardController@postUserProfileUpdate');
Route::post('/user/profile-image-upload', 'DashboardController@postUserProfileImageUpload');
Route::delete('/user/profile-image-delete', 'DashboardController@deleteUserProfileImageDelete');
Route::get('/settings', 'App\Http\Controllers\DashboardController@getSettings');
Route::post('/user/password-update', 'App\Http\Controllers\DashboardController@postUserPasswordUpdate');
Route::post('/user/profile-update', 'App\Http\Controllers\DashboardController@postUserProfileUpdate');
Route::post('/user/profile-image-upload', 'App\Http\Controllers\DashboardController@postUserProfileImageUpload');
Route::delete('/user/profile-image-delete', 'App\Http\Controllers\DashboardController@deleteUserProfileImageDelete');
// Credits Page
Route::get('/credits', 'DashboardController@getCredits');
Route::get('/credits', 'App\Http\Controllers\DashboardController@getCredits');
});
/*