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

Refactoring : séparer les controlleurs admin & membres #879

Open
6 of 9 tasks
raphodn opened this issue Jun 5, 2023 · 0 comments · Fixed by #875, #878, #959, #962 or #966
Open
6 of 9 tasks

Refactoring : séparer les controlleurs admin & membres #879

raphodn opened this issue Jun 5, 2023 · 0 comments · Fixed by #875, #878, #959, #962 or #966

Comments

@raphodn
Copy link
Member

raphodn commented Jun 5, 2023

Quoi ?

Certains controlleurs gèrent à la fois des vues "membres", et des vues "admin".
Or la route est définie à la racine du controlleur, donc généralement les vues "admin" ne sont alors pas précédées de /admin.

C'est le cas par exemple de PeriodController

L'idée est donc de séparer en 2. Dans l'exemple : PeriodController & AdminPeriodController

Controlleurs concernés par le split

  • PeriodController
  • EventController & EventKindController
  • OpeningHourController & OpeningHourKindController
  • ClosingExceptionController
  • BookingController
  • ShiftController ?

Autres controlleurs (prefixer de Admin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment