-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from pkracer/1.x
Laravel 8 Compatibility
- Loading branch information
Showing
3 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,42 @@ | ||
<?php | ||
|
||
use Wink\Http\Controllers\ImageUploadsController; | ||
use Wink\Http\Controllers\LoginController; | ||
use Wink\Http\Controllers\PagesController; | ||
use Wink\Http\Controllers\PostsController; | ||
use Wink\Http\Controllers\SPAViewController; | ||
use Wink\Http\Controllers\TagsController; | ||
use Wink\Http\Controllers\TeamController; | ||
|
||
// Blog Posts... | ||
Route::get('/api/posts', 'PostsController@index')->name('posts.index'); | ||
Route::get('/api/posts/{id?}', 'PostsController@show')->name('posts.show'); | ||
Route::post('/api/posts/{id}', 'PostsController@store')->name('posts.store'); | ||
Route::delete('/api/posts/{id}', 'PostsController@delete')->name('posts.delete'); | ||
Route::get('/api/posts', [PostsController::class, 'index'])->name('posts.index'); | ||
Route::get('/api/posts/{id?}', [PostsController::class, 'show'])->name('posts.show'); | ||
Route::post('/api/posts/{id}', [PostsController::class, 'store'])->name('posts.store'); | ||
Route::delete('/api/posts/{id}', [PostsController::class, 'delete'])->name('posts.delete'); | ||
|
||
// Blog Tags... | ||
Route::get('/api/tags', 'TagsController@index')->name('tags.index'); | ||
Route::get('/api/tags/{id?}', 'TagsController@show')->name('tags.show'); | ||
Route::post('/api/tags/{id}', 'TagsController@store')->name('tags.store'); | ||
Route::delete('/api/tags/{id}', 'TagsController@delete')->name('tags.delete'); | ||
Route::get('/api/tags', [TagsController::class, 'index'])->name('tags.index'); | ||
Route::get('/api/tags/{id?}', [TagsController::class, 'show'])->name('tags.show'); | ||
Route::post('/api/tags/{id}', [TagsController::class, 'store'])->name('tags.store'); | ||
Route::delete('/api/tags/{id}', [TagsController::class, 'delete'])->name('tags.delete'); | ||
|
||
// Blog Authors... | ||
Route::get('/api/team', 'TeamController@index')->name('team.index'); | ||
Route::get('/api/team/{id?}', 'TeamController@show')->name('team.show'); | ||
Route::post('/api/team/{id}', 'TeamController@store')->name('team.store'); | ||
Route::delete('/api/team/{id}', 'TeamController@delete')->name('team.delete'); | ||
Route::get('/api/team', [TeamController::class, 'index'])->name('team.index'); | ||
Route::get('/api/team/{id?}', [TeamController::class, 'show'])->name('team.show'); | ||
Route::post('/api/team/{id}', [TeamController::class, 'store'])->name('team.store'); | ||
Route::delete('/api/team/{id}', [TeamController::class, 'delete'])->name('team.delete'); | ||
|
||
// Blog Image Uploads | ||
Route::post('/api/uploads', 'ImageUploadsController@upload')->name('images.store'); | ||
Route::post('/api/uploads', [ImageUploadsController::class, 'upload'])->name('images.store'); | ||
|
||
// Blog Pages... | ||
Route::get('/api/pages', 'PagesController@index')->name('pages.index'); | ||
Route::get('/api/pages/{id?}', 'PagesController@show')->name('pages.show'); | ||
Route::post('/api/pages/{id}', 'PagesController@store')->name('pages.store'); | ||
Route::delete('/api/pages/{id}', 'PagesController@delete')->name('pages.delete'); | ||
Route::get('/api/pages', [PagesController::class, 'index'])->name('pages.index'); | ||
Route::get('/api/pages/{id?}', [PagesController::class, 'show'])->name('pages.show'); | ||
Route::post('/api/pages/{id}', [PagesController::class, 'store'])->name('pages.store'); | ||
Route::delete('/api/pages/{id}', [PagesController::class, 'delete'])->name('pages.delete'); | ||
|
||
// Logout Route... | ||
Route::get('/logout', 'LoginController@logout')->name('logout'); | ||
Route::get('/logout', [LoginController::class, 'logout'])->name('logout'); | ||
|
||
// Catch-all Route... | ||
Route::get('/{view?}', 'SPAViewController')->name('spa')->where('view', '(.*)'); | ||
Route::get('/{view?}', SPAViewController::class)->name('spa')->where('view', '(.*)'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters