* refactor: folder structure for urls * chore: deleted the urls file * chore: proper naming for urls * chore: reset password url * dev: create refresh token endpoint and endpoint to get settings for user * dev: workspace member me serializer * dev: remove extra fields from project list and retrieve endpoints * dev: update the project list endpoint with member details and deploy boolean * dev: enable user favorite project endpoint and remove is_favorite from project list * dev: analytics refactoring * dev: revert is_favorite settings * dev: create new serializer for project list and add pagination from projects * dev: fix analytics api * dev: module and cycle * dev: update error message, fix module analytics and add null check for labels * dev: member serializer * dev: dynamic base serializer * dev: remove view issues endpoint * dev: url pattern updates * dev: add comments to delete this file * dev: last workspace id * dev: analytics export * dev: export analytics validation * dev: update python runtime * dev: update notification endpoints * dev: cycle and validation fix * dev: issue activity validation when creating updating and deleting issue and comments * dev: update issue activity logging for link and reactions * dev: update module issue activity logging * dev: update module issue activity --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
68 lines
2 KiB
Python
68 lines
2 KiB
Python
from django.urls import path
|
|
|
|
from rest_framework_simplejwt.views import TokenRefreshView
|
|
|
|
|
|
from plane.api.views import (
|
|
# Authentication
|
|
SignUpEndpoint,
|
|
SignInEndpoint,
|
|
SignOutEndpoint,
|
|
MagicSignInEndpoint,
|
|
MagicSignInGenerateEndpoint,
|
|
OauthEndpoint,
|
|
## End Authentication
|
|
# Auth Extended
|
|
ForgotPasswordEndpoint,
|
|
VerifyEmailEndpoint,
|
|
ResetPasswordEndpoint,
|
|
RequestEmailVerificationEndpoint,
|
|
ChangePasswordEndpoint,
|
|
## End Auth Extender
|
|
# API Tokens
|
|
ApiTokenEndpoint,
|
|
## End API Tokens
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
# Social Auth
|
|
path("social-auth/", OauthEndpoint.as_view(), name="oauth"),
|
|
# Auth
|
|
path("sign-up/", SignUpEndpoint.as_view(), name="sign-up"),
|
|
path("sign-in/", SignInEndpoint.as_view(), name="sign-in"),
|
|
path("sign-out/", SignOutEndpoint.as_view(), name="sign-out"),
|
|
# Magic Sign In/Up
|
|
path(
|
|
"magic-generate/", MagicSignInGenerateEndpoint.as_view(), name="magic-generate"
|
|
),
|
|
path("magic-sign-in/", MagicSignInEndpoint.as_view(), name="magic-sign-in"),
|
|
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
|
# Email verification
|
|
path("email-verify/", VerifyEmailEndpoint.as_view(), name="email-verify"),
|
|
path(
|
|
"request-email-verify/",
|
|
RequestEmailVerificationEndpoint.as_view(),
|
|
name="request-reset-email",
|
|
),
|
|
# Password Manipulation
|
|
path(
|
|
"users/me/change-password/",
|
|
ChangePasswordEndpoint.as_view(),
|
|
name="change-password",
|
|
),
|
|
path(
|
|
"reset-password/<uidb64>/<token>/",
|
|
ResetPasswordEndpoint.as_view(),
|
|
name="password-reset",
|
|
),
|
|
path(
|
|
"forgot-password/",
|
|
ForgotPasswordEndpoint.as_view(),
|
|
name="forgot-password",
|
|
),
|
|
# API Tokens
|
|
path("api-tokens/", ApiTokenEndpoint.as_view(), name="api-tokens"),
|
|
path("api-tokens/<uuid:pk>/", ApiTokenEndpoint.as_view(), name="api-tokens"),
|
|
## End API Tokens
|
|
]
|