Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MOREAU Elise
project-covid
Commits
3fff463b
Commit
3fff463b
authored
Nov 01, 2020
by
Moreau Elise
Browse files
add route to update location in user's profile
parent
ba98a206
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/routes.php
View file @
3fff463b
...
...
@@ -9,6 +9,7 @@ use App\Application\Actions\User\LogInUserAction;
use
App\Application\Actions\User\DeleteUserAction
;
use
App\Application\Actions\User\ModifyUserAction
;
use
App\Application\Actions\User\ViewModifyForm
;
use
App\Application\Actions\User\LocationUserAction
;
use
App\Application\Actions\Group\CreateGroupAction
;
use
App\Application\Actions\Group\ListGroupsAction
;
...
...
@@ -112,6 +113,7 @@ return function (App $app) {
$group
->
post
(
'/delete'
,
DeleteUserAction
::
class
);
$group
->
get
(
'/modify'
,
ViewModifyForm
::
class
);
$group
->
post
(
'/modify'
,
ModifyUserAction
::
class
);
$group
->
post
(
'/location'
,
LocationUserAction
::
class
);
}
)
->
add
(
AuthMiddleware
::
class
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment