Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
Ref #49: Uniformize URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
hundrex committed Mar 8, 2018
1 parent 3c39bc8 commit 33e6747
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/AppBundle/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function showContentWarningAction(Request $request, ContentWarning $conte
/**
* Creates a new contentWarning entity.
*
* @Route("/contentwarnings/new", name="contentwarning_new")
* @Route("/contentwarning/new", name="contentwarning_new")
* @Method({"GET", "POST"})
*/
public function newContentWarningAction(Request $request)
Expand Down Expand Up @@ -153,7 +153,7 @@ public function newContentWarningAction(Request $request)
/**
* Displays a form to edit an existing contentWarning entity.
*
* @Route("/contentwarnings/{slug}/edit", name="contentwarning_edit")
* @Route("/contentwarning/{slug}/edit", name="contentwarning_edit")
* @Method({"GET", "POST"})
*/
public function editContentWarningAction(Request $request, ContentWarning $contentWarning)
Expand Down Expand Up @@ -188,7 +188,7 @@ public function editContentWarningAction(Request $request, ContentWarning $conte
/**
* Deletes a contentWarning entity.
*
* @Route("/contentwarnings/{slug}", name="contentwarning_delete")
* @Route("/contentwarning/{slug}", name="contentwarning_delete")
* @Method("DELETE")
*/
public function deleteContentWarningAction(Request $request, ContentWarning $contentWarning)
Expand Down Expand Up @@ -267,7 +267,7 @@ public function listStripAction(Request $request)
/**
* Creates a new strip entity.
*
* @Route("/strips/new", name="strip_new")
* @Route("/strip/new", name="strip_new")
* @Method({"GET", "POST"})
*/
public function newStripAction(Request $request)
Expand Down Expand Up @@ -358,7 +358,7 @@ public function showStripAction(Request $request, Strip $strip)
/**
* Displays a form to edit an existing strip entity.
*
* @Route("/strips/{id}/edit", name="strip_edit")
* @Route("/strip/{id}/edit", name="strip_edit")
* @Method({"GET", "POST"})
*/
public function editStripAction(Request $request, Strip $strip)
Expand Down Expand Up @@ -393,7 +393,7 @@ public function editStripAction(Request $request, Strip $strip)
/**
* Deletes a strip entity.
*
* @Route("/strips/{id}", name="strip_delete")
* @Route("/strip/{id}", name="strip_delete")
* @Method("DELETE")
*/
public function deleteStripAction(Request $request, Strip $strip)
Expand Down
3 changes: 3 additions & 0 deletions src/AppBundle/Controller/SecurityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class SecurityController extends Controller

/**
* @Route("/login", name="login")
* @Method({"GET", "POST"})
*/
public function loginAction(Request $request)
{
Expand Down Expand Up @@ -52,6 +53,7 @@ public function loginAction(Request $request)

/**
* @Route("/firstlogin", name="firstlogin")
* @Method({"GET"})
*/
public function firstloginAction(Request $request, Account $account)
{
Expand All @@ -72,6 +74,7 @@ public function firstloginAction(Request $request, Account $account)

/**
* @Route("/logout", name="logout")
* @Method({"GET"})
*/
public function logoutAction(Request $request)
{
Expand Down

0 comments on commit 33e6747

Please sign in to comment.