Routes
This is a list of routes and their (basic) functions.
/
GET
Should always return something similar to the below.
This can be used to verify that a server is indeed up and running, as it should always respond with that
/account
POST
This route is used to make accounts, additionally to logging in to an account. See Authentication for more information on how auth works. The input should look something like below, replacing the placeholders with their respective values.
Note
Passwords are stored securely, hashed using Argon2. You can review how this is done in the source code.
If everything is successful, you should get a respond of the following:
There is a password strength requirement, using nbvcxz. If the password is too weak, you should get a response that looks like the below.
There are also other errors, listed here:
- No username present
- Username too long (> 50 chars)
- No password present
These following errors are login (not acccount creation) specific:
- Incorrect Password