initial commit
This commit is contained in:
23
main.go
Normal file
23
main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func LoginHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
pool = getDbPool()
|
||||
|
||||
http.HandleFunc("/role/create-role", createRole)
|
||||
http.HandleFunc("/role/attach-role", attachRole)
|
||||
http.HandleFunc("/role/detach-role", detachRole)
|
||||
http.HandleFunc("/role/assume-role", assumeRole)
|
||||
http.HandleFunc("/role/get-role-token", getRoleToken)
|
||||
//http.HandleFunc("/role/authorize-role", authorizeRole)
|
||||
|
||||
log.Println("server running on :8080")
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
}
|
||||
Reference in New Issue
Block a user