Forgotten changes

This commit is contained in:
Dane Everitt 2018-01-19 21:48:26 -06:00
parent a497a3d153
commit 3724559468
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 58 additions and 3 deletions

View file

@ -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');