mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
33 lines
366 B
Markdown
33 lines
366 B
Markdown
# remove user
|
|
|
|
Available endpoints:
|
|
- DELETE `/`
|
|
|
|
Common return:
|
|
- 500 with response
|
|
```json
|
|
{
|
|
"error": "Internal server error"
|
|
}
|
|
```
|
|
|
|
## DELETE `/`
|
|
|
|
User to remove a user from the backend
|
|
|
|
Inputs: just need a valid JWT cookie
|
|
|
|
Returns:
|
|
- 200
|
|
```json
|
|
{
|
|
"msg": "User successfully deleted"
|
|
}
|
|
```
|
|
- 401 || 400
|
|
```json
|
|
{
|
|
"error": "<corresponding msg>
|
|
}
|
|
```
|