mirror of
https://github.com/donl/gPanel.git
synced 2026-05-31 22:07:25 -06:00
23 lines
422 B
Markdown
23 lines
422 B
Markdown
# Working API Calls
|
|
|
|
```go
|
|
// User Authentication API - pkg/api/user_auth.go
|
|
/*
|
|
JSON Data Required:
|
|
{
|
|
"user": "test",
|
|
"pass": "test",
|
|
}
|
|
*/
|
|
func UserAuthentication(res http.ResponseWriter, req *http.Request) bool
|
|
|
|
// User Registration API - pkg/api/user_auth.go
|
|
/*
|
|
JSON Data Required:
|
|
{
|
|
"user": "test",
|
|
"pass": "test",
|
|
}
|
|
*/
|
|
func UserRegistration(res http.ResponseWriter, req *http.Request) bool
|
|
```
|