From 8330a8a5bef8e25e18e1cff98a68d5d6102d810c Mon Sep 17 00:00:00 2001 From: maaa Date: Mon, 10 Jul 2023 18:58:27 +0200 Subject: [PATCH] fart --- templates/apidocs.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/apidocs.html b/templates/apidocs.html index 40fcacd..28c7118 100644 --- a/templates/apidocs.html +++ b/templates/apidocs.html @@ -40,6 +40,8 @@ Supported file extensions: "png", "apng", "jpg", "jpeg", "gif", "svg", "webp"

POST /api/comment - comment on posts - authentication required
title, being the title of the comment and id, being the ID of the post you want to comment on.

+ POST /api/delete - remove posts - authentication required
+ id, being the id of the post. you must be the owner of the post to delete.

POST /api/login - get authentication key
username, being the username and password, being the password. Returns authentication key.

GET /api/userinfo - authentication required - Returns user info, username, ID, and account creation date.