forked from Telodendria/Telodendria
Fix admin endpoint to be /_telodendria/admin instead of /admin.
This is how Synapse and Dendrite do it. It makes sense to me.
This commit is contained in:
parent
a4ec6cf6c7
commit
e1efac41fa
1 changed files with 9 additions and 9 deletions
|
@ -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 |
|
||||
|--------------|------------|------------|
|
||||
|
|
Loading…
Reference in a new issue