Forgotten changes
This commit is contained in:
parent
a497a3d153
commit
3724559468
2 changed files with 58 additions and 3 deletions
|
@ -84,15 +84,15 @@ Route::group(['prefix' => '/locations'], function () {
|
|||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Location Controller Routes
|
||||
| Server Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/application/servers
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/servers'], function () {
|
||||
Route::bind('location', function ($value) {
|
||||
return Server::find($value) ?? new Location;
|
||||
Route::bind('server', function ($value) {
|
||||
return Server::find($value) ?? new Server;
|
||||
});
|
||||
|
||||
Route::get('/', 'Servers\ServerController@index')->name('api.application.servers');
|
||||
|
|
Reference in a new issue