This is the backend (or 'api component') of the forum software to go along with the corresponding frontend project.
All API routes are prefixed /api/v1/
All sub-routes require admin privileges
POST
{
id: <integer>,
token: <string>
}
All sub-routes require admin privileges
POST
{
id: <integer>,
message: <string>,
canCreateThreads: <boolean>,
canCreatePosts: <boolean>,
ipBanned: <boolean>,
User: {
id: <integer>,
username: <string>,
description: <null | string>,
color: <string>,
createdAt: <string>
}
GET
[{
id: <integer>,
createdAt: <string>,
updatedAt: <string>,
canCreatePosts: <boolean>,
canCreateThreads: <boolean>,
ipBanned: <boolean>,
message: <string>,
UserId: <integer>
}, ...]
DELETE
{ success: true }