gPanel/pkg/api/user
George Shaw b9f7c5d065 Fix import paths
* github.com/Ennovar/gPanel -> github.com/kentonh/gPanel
2018-09-21 20:13:49 -05:00
..
auth.go Fix import paths 2018-09-21 20:13:49 -05:00
delete.go Fix import paths 2018-09-21 20:13:49 -05:00
get_secret.go Fix import paths 2018-09-21 20:13:49 -05:00
list.go Fix import paths 2018-09-21 20:13:49 -05:00
logout.go referencing #129, removed usage of gorilla/sessions and gorilla/context within code 2018-01-22 17:03:29 -06:00
README.md generalized user request data readme 2017-11-13 16:26:28 -06:00
register.go Fix import paths 2018-09-21 20:13:49 -05:00
update_password.go Fix import paths 2018-09-21 20:13:49 -05:00

User API Documentation

/*
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 {}