* dev: magic link login and email password disable * dev: user account deactivation * dev: change nginx conf routes * feat: changemod space * fix: space app dir fixes * dev: invalidate cache for instances when creating workspace * dev: update email templates for test email * dev: fix build errors * fix: auth fixes and improvement (#4452) * chore: change password api updated and missing password error code added * chore: auth helper updated * chore: disable send code input suggestion * chore: change password function updated * fix: application error on sign in page * chore: change password validation added and enhancement * dev: space base path in web * dev: admin user deactivated * dev: user and instance admin session endpoint * fix: last_workspace_id endpoint updated * fix: magic sign in and email password check added --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: guru_sainath <gurusainath007@gmail.com>
113 lines
2.6 KiB
Python
113 lines
2.6 KiB
Python
from django.urls import path
|
|
|
|
from plane.app.views import (
|
|
AccountEndpoint,
|
|
ProfileEndpoint,
|
|
UpdateUserOnBoardedEndpoint,
|
|
UpdateUserTourCompletedEndpoint,
|
|
UserActivityEndpoint,
|
|
UserActivityGraphEndpoint,
|
|
## User
|
|
UserEndpoint,
|
|
UserIssueCompletedGraphEndpoint,
|
|
UserWorkspaceDashboardEndpoint,
|
|
UserSessionEndpoint,
|
|
## End User
|
|
## Workspaces
|
|
UserWorkSpacesEndpoint,
|
|
)
|
|
|
|
urlpatterns = [
|
|
# User Profile
|
|
path(
|
|
"users/me/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"patch": "partial_update",
|
|
"delete": "deactivate",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/session/",
|
|
UserSessionEndpoint.as_view(),
|
|
name="user-session",
|
|
),
|
|
path(
|
|
"users/me/settings/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve_user_settings",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
# Profile
|
|
path(
|
|
"users/me/profile/",
|
|
ProfileEndpoint.as_view(),
|
|
name="accounts",
|
|
),
|
|
# End profile
|
|
# Accounts
|
|
path(
|
|
"users/me/accounts/",
|
|
AccountEndpoint.as_view(),
|
|
name="accounts",
|
|
),
|
|
path(
|
|
"users/me/accounts/<uuid:pk>/",
|
|
AccountEndpoint.as_view(),
|
|
name="accounts",
|
|
),
|
|
## End Accounts
|
|
path(
|
|
"users/me/instance-admin/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve_instance_admin",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/onboard/",
|
|
UpdateUserOnBoardedEndpoint.as_view(),
|
|
name="user-onboard",
|
|
),
|
|
path(
|
|
"users/me/tour-completed/",
|
|
UpdateUserTourCompletedEndpoint.as_view(),
|
|
name="user-tour",
|
|
),
|
|
path(
|
|
"users/me/activities/",
|
|
UserActivityEndpoint.as_view(),
|
|
name="user-activities",
|
|
),
|
|
# user workspaces
|
|
path(
|
|
"users/me/workspaces/",
|
|
UserWorkSpacesEndpoint.as_view(),
|
|
name="user-workspace",
|
|
),
|
|
# User Graphs
|
|
path(
|
|
"users/me/workspaces/<str:slug>/activity-graph/",
|
|
UserActivityGraphEndpoint.as_view(),
|
|
name="user-activity-graph",
|
|
),
|
|
path(
|
|
"users/me/workspaces/<str:slug>/issues-completed-graph/",
|
|
UserIssueCompletedGraphEndpoint.as_view(),
|
|
name="completed-graph",
|
|
),
|
|
path(
|
|
"users/me/workspaces/<str:slug>/dashboard/",
|
|
UserWorkspaceDashboardEndpoint.as_view(),
|
|
name="user-workspace-dashboard",
|
|
),
|
|
## End User Graph
|
|
]
|