mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add TOS and Privacy Policy support
This commit is contained in:
parent
e9e33432c2
commit
ffcf01e3cd
12 changed files with 180 additions and 33 deletions
|
|
@ -25,4 +25,8 @@ For frontend developers. Please read [the documentation](./frontend.md).
|
|||
|
||||
## Mastodon API Extensions
|
||||
|
||||
Extra attributes have been added to some Mastodon API routes. Those changes are [documented in this document](./mastodon.md)
|
||||
Extra attributes have been added to some Mastodon API routes. Those changes are [documented in this document](./mastodon.md)
|
||||
|
||||
## Instance API
|
||||
|
||||
Extra endpoints have been added to the API to provide additional information about the instance. Please read [the documentation](./instance.md).
|
||||
11
docs/api/instance.md
Normal file
11
docs/api/instance.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Instance Endpoints
|
||||
|
||||
Extra endpoints have been added to the API to provide additional information about the instance.
|
||||
|
||||
## `/api/v1/instance/tos`
|
||||
|
||||
Returns the same output as Mastodon's `/api/v1/instance/extended_description`, but with the instance's Terms of Service. Configurable at `instance.tos_path` in config.
|
||||
|
||||
## `/api/v1/instance/privacy_policy`
|
||||
|
||||
Returns the same output as Mastodon's `/api/v1/instance/extended_description`, but with the instance's Privacy Policy. Configurable at `instance.privacy_policy_path` in config.
|
||||
|
|
@ -30,7 +30,7 @@ The URL of the instance's banner image. `null` if there is no banner set.
|
|||
|
||||
The version of the Lysand instance.
|
||||
|
||||
The normal `version` field is always set to `"4.3.0+glitch"` or similar to not confuse clients that expect a Mastodon instance.
|
||||
The normal `version` field is always set to `"4.3.0+glitch"` or similar, to not confuse clients that expect a Mastodon instance.
|
||||
|
||||
### `sso`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue