-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make API more RESTful #98
base: master
Are you sure you want to change the base?
Conversation
type: 'POST', | ||
url: '{{ url('/hub/missions/operations/remove-mission') }}', | ||
type: 'DELETE', | ||
url: "{{ url('/hub/operations/1/missions') }}", | ||
data: {'id': caller.data('item') || -1}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should store Operation ID rather than OperationMission ID, allowing url to change to '/hub/operations/{operation}/missions/{mission}'
@@ -1,115 +0,0 @@ | |||
<?php | |||
|
|||
namespace App\Http\Controllers\API; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API/OperationController and API/OperationMissionController were both unused
Route::prefix('hub/settings')->group(function() { | ||
Route::get('/', 'Users\SettingsController@index'); | ||
Route::post('/', 'Users\SettingsController@store'); | ||
Route::get('/avatar-sync', 'Users\SettingsController@avatarSync'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider reworking
923eb2b
to
ff0cd60
Compare
No description provided.