* dev: remove default user * dev: initiate licensing * dev: remove migration file 0046 * feat: self hosted licensing initialize * dev: instance licenses * dev: change license response structure * dev: add default properties and issue mention migration * dev: reset migrations * dev: instance configuration * dev: instance configuration migration * dev: update instance configuration model to take null and empty values * dev: instance configuration variables * dev: set default values * dev: update instance configuration load * dev: email configuration settings moved to database * dev: instance configuration on instance bootup * dev: auto instance registration script * dev: instance admin * dev: enable instance configuration and instance admin roles * dev: instance owner fix * dev: instance configuration values * dev: fix instance permissions and serializer * dev: fix email senders * dev: remove deprecated variables * dev: fix current site domain registration * dev: update cors setup and local settings * dev: migrate instance registration and configuration to manage commands * dev: check email validity * dev: update script to use manage command * dev: default bucket creation script * dev: instance admin routes and initial set of screens * dev: admin api to check if the current user is admin * dev: instance admin unique constraints * dev: check magic link login * dev: fix email sending for ssl * dev: create instance activation route if the instance is not activated during startup * dev: removed DJANGO_SETTINGS_MODULE from environment files and deleted auto bucket create script * dev: environment configuration for backend * dev: fix access token variable error * feat: Instance Admin Panel: General Settings (#2792) --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
93 lines
2.2 KiB
Python
93 lines
2.2 KiB
Python
from django.urls import path
|
|
|
|
from plane.api.views import (
|
|
## User
|
|
UserEndpoint,
|
|
UpdateUserOnBoardedEndpoint,
|
|
UpdateUserTourCompletedEndpoint,
|
|
UserActivityEndpoint,
|
|
ChangePasswordEndpoint,
|
|
## End User
|
|
## Workspaces
|
|
UserWorkSpacesEndpoint,
|
|
UserActivityGraphEndpoint,
|
|
UserIssueCompletedGraphEndpoint,
|
|
UserWorkspaceDashboardEndpoint,
|
|
## End Workspaces
|
|
)
|
|
|
|
urlpatterns = [
|
|
# User Profile
|
|
path(
|
|
"users/me/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve",
|
|
"patch": "partial_update",
|
|
"delete": "deactivate",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/settings/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve_user_settings",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/instance-admin/",
|
|
UserEndpoint.as_view(
|
|
{
|
|
"get": "retrieve_instance_admin",
|
|
}
|
|
),
|
|
name="users",
|
|
),
|
|
path(
|
|
"users/me/change-password/",
|
|
ChangePasswordEndpoint.as_view(),
|
|
name="change-password",
|
|
),
|
|
path(
|
|
"users/me/onboard/",
|
|
UpdateUserOnBoardedEndpoint.as_view(),
|
|
name="user-onboard",
|
|
),
|
|
path(
|
|
"users/me/tour-completed/",
|
|
UpdateUserTourCompletedEndpoint.as_view(),
|
|
name="user-tour",
|
|
),
|
|
path(
|
|
"users/workspaces/<str:slug>/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
|
|
]
|