From e1efac41fa705f560c92e8810d030a8cf43db410 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 4 Feb 2023 00:24:17 +0000 Subject: [PATCH] Fix admin endpoint to be /_telodendria/admin instead of /admin. This is how Synapse and Dendrite do it. It makes sense to me. --- proposals/1.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/proposals/1.md b/proposals/1.md index 84449fa..354c5cc 100644 --- a/proposals/1.md +++ b/proposals/1.md @@ -33,7 +33,7 @@ Here are all of the admin privileges a user can have: - DEACTIVATE: This allows an user to deactivate/reactivate any users using - the DELETE /_admin/disable/[localpart] endpoint + the DELETE /_telodendria/admin/disable/[localpart] endpoint - ISSUE_TOKENS: This allows users to create, modify and delete registration @@ -51,7 +51,7 @@ Here are all of the admin privileges a user can have: ## Admin endpoints -### GET `/_admin/privileges` +### GET `/_telodendria/admin/privileges` |Requires token|Rate limited| |--------------|------------| @@ -79,7 +79,7 @@ Here are all of the admin privileges a user can have: } ``` -### DELETE `/_admin/deactivate/[localpart]` +### DELETE `/_telodendria/admin/deactivate/[localpart]` |Requires token|Rate limited|Permissions| |--------------|------------|-----------| @@ -153,7 +153,7 @@ Request Example: } ``` -### PUT `/_admin/deactivate/[localpart]` +### PUT `/_telodendria/admin/deactivate/[localpart]` |Requires token|Rate limited|Permissions| |--------------|------------|-----------| @@ -188,7 +188,7 @@ Reactivates a local user. } ``` -### GET `/_admin/tokens` +### GET `/_telodendria/admin/tokens` |Requires token|Rate limited|Permissions | |--------------|------------|------------| @@ -272,7 +272,7 @@ Gets a list of *all* tokens present, and additional information. } ``` -### GET `/_admin/tokens/[token]` +### GET `/_telodendria/admin/tokens/[token]` |Requires token|Rate limited|Permissions | |--------------|------------|------------| @@ -327,7 +327,7 @@ Returns information about a specific registration token. } ``` -### POST `/_admin/tokens` +### POST `/_telodendria/admin/tokens` |Requires token|Rate limited|Permissions | |--------------|------------|------------| @@ -413,7 +413,7 @@ Request Example: } ``` -### DELETE /_admin/tokens/[tokenname] +### DELETE /_telodendria/admin/tokens/[tokenname] |Requires token|Rate limited|Permissions | |--------------|------------|------------| @@ -438,7 +438,7 @@ Deletes an existing registration token. } ``` -### POST /_admin/user/create +### POST /_telodendria/admin/user/create |Requires token|Rate limited|Permissions | |--------------|------------|------------|