Draft: Refactor routes
Proposition pour fix #134 si la discussion aboutit.
À noter que toute la partie concernant les profiles pourrait être refactorisée en laissant son autonomie vis-à-vis des services. Cette branche essaie de pousser la logique le plus loin possible.
Notes :
- cette branche intègre les changements introduits par feat: moderation view (!79 - merged)
- je ne corrige pas les tests tant qu'on n'a pas eu de discussion
Avant après (#134)
Endpoint | Before | After |
---|---|---|
account.contact | /account/contact | /account/settings/contact |
account.home | /account/home | /account/home |
account.password | /account/auth/password | /account/settings/auth/password |
account.password_reset | /account/auth/password/reset | /account/auth/password/reset |
account.profiles | /account/profiles | /account/profiles |
account.signin_password | /account/signin/password | /account/auth/password |
account.signin_totp | /account/signin/totp | /account/auth/totp |
account.signout | /account/signout | /account/auth/signout |
account.signup | /account/signup | /account/auth/signup |
account.totp | /account/auth/totp | /account/settings/auth/totp |
account.totp_disable | /account/auth/totp/disable | /account/settings/auth/totp/disable |
account.totp_enable | /account/auth/totp/enable | /account/settings/auth/totp/enable |
account.totp_reset | /account/auth/totp/reset | /account/auth/totp/reset |
api.profile_email | /api/profile/<profile_uuid>/email | /api/profiles/<profile_uuid>/email |
index | / | / |
moderation.board | /moderation/ | /moderation/ |
profile.action | /profile/action/<profile_uuid>/<action> | /services/<service_uuid>/profiles/<profile_uuid>/<action> |
profile.assign | /profile/assign/<profile_uuid> | /services/<service_uuid>/profiles/<profile_uuid>/assign |
profile.cancel_transition | /profile/transition/<profile_uuid>/cancel | /services/<service_uuid>/profiles/<profile_uuid>/transition/cancel |
profile.claim | /profile/claim/<service_uuid> | /services/<service_uuid>/profiles/claim |
profile.complete_transition | /profile/transition/<profile_uuid>/complete | /services/<service_uuid>/profiles/<profile_uuid>/transition/complete |
profile.create | /profile/create/<service_uuid> | /services/<service_uuid>/profiles/create |
profile.create_for | /profile/create_for/<service_uuid> | /services/<service_uuid>/profiles/create-for |
profile.create_quick | /profile/create_quick/<service_uuid> | /services/<service_uuid>/profiles/create-quick |
profile.details | /profile/details/<profile_uuid> | /services/<service_uuid>/profiles/<profile_uuid> |
profile.list_for_service | /profile/list/service/<service_uuid> | /services/<service_uuid>/profiles/ |
profile.pick | /profile/pick/<service_uuid> | /services/<service_uuid>/profiles/pick |
profile.start_transition | /profile/transition/<profile_uuid>/<transition_id> | /services/<service_uuid>/profiles/<profile_uuid>/transition/<transition_id> |
profile.unclaimed_export_for_service | /profile/unclaimedexport/service/<service_uuid>.csv | /services/<service_uuid>/profiles/unclaimed.csv |
service.action | /service/action/<service_uuid>/<action> | /services/<service_uuid>/<action> |
service.create | /service/create/<application_id> | /services/<application_id>/create |
service.create_select | /service/create | /services/create |
service.delete | /service/delete/<service_uuid> | /services/<service_uuid>/delete |
service.details | /service/details/<service_uuid> | /services/<service_uuid> |
service.edit | /service/edit/<service_uuid> | /services/<service_uuid>/edit |
service.edit | /service/edit | /services/edit |
service.list | /service/list | /services/ |
service.setapp | /service/setapp/<service_uuid>/<application_id> | /services/setapp/<service_uuid>/<application_id> |
service.setapp_select | /service/setapp/<service_uuid> | /services/<service_uuid>/setapp |
sso.oidc_authorize | /sso/oidc/<service_uuid>/authorize | /sso/oidc/<service_uuid>/authorize |
sso.oidc_authorize | /sso/oidc/authorize/<service_uuid> | /sso/oidc/authorize/<service_uuid> |
sso.oidc_discovery | /sso/oidc/<service_uuid>/.well-known/openid-configuration | /sso/oidc/<service_uuid>/.well-known/openid-configuration |
sso.oidc_issuer | /sso/oidc/<service_uuid> | /sso/oidc/<service_uuid> |
sso.oidc_jwks | /sso/oidc/<service_uuid>/jwks | /sso/oidc/<service_uuid>/jwks |
sso.oidc_token | /sso/oidc/<service_uuid>/token | /sso/oidc/<service_uuid>/token |
sso.oidc_token | /sso/oidc/token/<service_uuid> | /sso/oidc/token/<service_uuid> |
sso.oidc_userinfo | /sso/oidc/<service_uuid>/userinfo | /sso/oidc/<service_uuid>/userinfo |
sso.oidc_userinfo | /sso/oidc/userinfo/<service_uuid> | /sso/oidc/userinfo/<service_uuid> |
sso.saml_metadata | /sso/saml/metadata/<service_uuid>.xml | /sso/saml/metadata/<service_uuid>.xml |
sso.saml_redirect | /sso/saml/redirect/<service_uuid> | /sso/saml/redirect/<service_uuid> |
static | /static/path:filename | /static/path:filename |
user.contact_check | /user/contact/check/<user_uuid> | /users/<user_uuid>/contact-checking |
user.details | /user/details/<user_uuid> | /users/<user_uuid> |
user.invite | /user/invite | /users/invitation |
user.list | /user/list | /users/ |
user.password_reset | /user/auth/password/reset/<user_uuid> | /users/<user_uuid>/auth/password/reset |
user.pick | /user/pick | /users/pick |
user.totp_reset | /user/auth/totp/reset/<user_uuid> | /users/<user_uuid>/auth/totp/reset |
Edited by ornanovitch