|
%!s(int64=8) %!d(string=hai) anos | |
---|---|---|
config | %!s(int64=8) %!d(string=hai) anos | |
lib | %!s(int64=8) %!d(string=hai) anos | |
migrations | %!s(int64=8) %!d(string=hai) anos | |
models | %!s(int64=8) %!d(string=hai) anos | |
routes | %!s(int64=8) %!d(string=hai) anos | |
test | %!s(int64=8) %!d(string=hai) anos | |
.gitignore | %!s(int64=8) %!d(string=hai) anos | |
LICENSE | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=8) %!d(string=hai) anos | |
package.json | %!s(int64=8) %!d(string=hai) anos | |
server.js | %!s(int64=8) %!d(string=hai) anos |
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 }