mirror of
https://github.com/donl/gPanel.git
synced 2026-05-26 22:06:36 -06:00
39 lines
598 B
Markdown
39 lines
598 B
Markdown
# User API Documentation
|
|
|
|
```go
|
|
/*
|
|
Relative API Path:
|
|
api/user/auth
|
|
Request:
|
|
{
|
|
"user": string,
|
|
"pass": string,
|
|
}
|
|
Response(204, 400, 401, 405, 500):
|
|
N/A
|
|
*/
|
|
func Auth(res http.ResponseWriter, req *http.Request) bool {}
|
|
|
|
/*
|
|
Relative API Path:
|
|
api/user/register
|
|
Request:
|
|
{
|
|
"user": string,
|
|
"pass": string,
|
|
}
|
|
Response (204, 400, 405, 500):
|
|
N/A
|
|
*/
|
|
func Register(res http.ResponseWriter, req *http.Request) bool {}
|
|
|
|
/*
|
|
Relative API Path:
|
|
api/user/logout
|
|
Request:
|
|
N/A
|
|
Response (204, 405, 500):
|
|
N/A
|
|
*/
|
|
func Logout(res http.ResponseWriter, req *http.Request) bool {}
|
|
```
|