Expose seconds_valid in Pleroma Captcha API endpoint

This commit is contained in:
Mark Felder 2020-07-29 16:07:22 -05:00
commit 33f0427809
6 changed files with 12 additions and 6 deletions

View file

@ -50,7 +50,7 @@ Request parameters can be passed via [query strings](https://en.wikipedia.org/wi
* Authentication: not required
* Params: none
* Response: Provider specific JSON, the only guaranteed parameter is `type`
* Example response: `{"type": "kocaptcha", "token": "whatever", "url": "https://captcha.kotobank.ch/endpoint"}`
* Example response: `{"type": "kocaptcha", "token": "whatever", "url": "https://captcha.kotobank.ch/endpoint", seconds_valid: 300}`
## `/api/pleroma/delete_account`
### Delete an account