mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-14 02:54:44 +02:00
654 B
654 B
Register
Available endpoints:
/register
/register/google
/register/google/callback
Common return:
- 500 with response
{
"error": "Internal server error"
}
/register
Input needed :
{
"user": "<string>",
"password": "<string>"
}
Can return:
- 200 with response and cookie in header
{
"msg": "Register successfully"
}
- 400 with response
{
"error": "<corresponding error>"
}
/register/google
Does not take input
Always return:
- redirect to the google auth url
/register/google/callback
inputs are filled by google
Can return:
- 400 with response