initial commit

This commit is contained in:
2026-04-02 01:52:41 -04:00
commit 571aab64bb
10 changed files with 611 additions and 0 deletions

23
main.go Normal file
View 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))
}