--- Title: API Type: Document --- --- import { Prism } from '@astrojs/prism'; ## Generic **Language** `/api/language/` [`en` | `jp`] **Telemtry** `/api/telemtry/` [`enable` | `disable`] ## Player **Milieu** `/api/player/milieu/` [`enable` | `disable`] Enable or disable the Milieu mode. ## Account System **Register** `/api/auth/register` *Required* - `name` - `email` - `password` When a user registered an account, it is processed with the following data: The end-user is then redirected to `/?=welcome` with an onboarding screen(Planned, this actually does nothing for now). Before logging in, end-users are required to verify their email first before logging in. **Confirm** `/api/auth/confirm` *Required* - `email` - `code` As mention just before, end-users are required to verify their email first before logging in. After registration, end-users are brought to a "Confirm Email" page. It is required that the email in question is provided, along with the code sent to that email from the SMTP server. **Login** `/api/auth/login` *Required* - `email` - `password` **Logout** `/api/auth/logout` **Update Name** `/api/update/name` *Required* - `name` **Update Email** `/api/update/email` *Required* - `email`