Skip to content
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

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Conversation

TomBurch
Copy link
Member

No description provided.

type: 'POST',
url: '{{ url('/hub/missions/operations/remove-mission') }}',
type: 'DELETE',
url: "{{ url('/hub/operations/1/missions') }}",
data: {'id': caller.data('item') || -1},
Copy link
Member Author

@TomBurch TomBurch Jun 24, 2021

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;
Copy link
Member Author

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');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider reworking

routes/web.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant