# 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 ### / * Method: `POST` * Response: ``` { id: , token: } ``` * Notes: requires admin privileges ## /ban ### / * Method: `GET` * Data params: * message * username: * canCreateThreads * canCreatePosts * ipBanned * Response: ``` { id: , message: , canCreateThreads: , canCreatePosts: , ipBanned: , User: { id: , username: , description: , color: , createdAt: } ``` * Notes: requires admin privileges