# forum-backend This is the backend (or 'api component') of the forum software to go along with the corresponding [frontend project](//github.com/sbkwgh/forum-frontend). # API Documentation All API routes are prefixed `/api/v1/` ## /admin_token All sub-routes require admin privileges ### / * Method: `POST` * Response: ``` { id: , token: } ``` ## /ban All sub-routes require admin privileges ### / * Method: `POST` * Data params: * message \ * username: \ * canCreateThreads \ * canCreatePosts \ * ipBanned \ * Response: ``` { id: , message: , canCreateThreads: , canCreatePosts: , ipBanned: , User: { id: , username: , description: , color: , createdAt: } ``` ### / * Method: `GET` * Response: ``` [{ id: , createdAt: , updatedAt: , canCreatePosts: , canCreateThreads: , ipBanned: , message: , UserId: }, ...] ``` ### /:id * Method: `DELETE` * URL params: id \ * Response: ``` { success: true } ```