## POST /api/v1/auth/register ### Request: ```json { "username": "string", "password": "string", "email": "string" } ``` Registers a new user ### Response (success): ```json { "username": "string", "registerDate": 0 } ``` ### Response (error): ```json { "error": "user already exists" } ``` --- ## POST /api/v1/auth/login ### Request: ```json { "username": "string", "password": "string" } ``` Logs in a user and returns a new session ### Response (success): ```json { "owner": "string", "token": "string" } ``` ### Response (incorrect credentials): ```json { "owner": "string", "error": "incorrect credentials" } ```