package api import ( "fmt" "net/http" redqdb "sinanmohd.com/redq/db" ) func Run(db *redqdb.SafeDB) { const prefix string = "POST /_redq/api" login := newLogin(db) http.Handle(prefix+"/ac/login", login) exampleApi := newExamplApiName(db) http.Handle(prefix+"/example", exampleApi) http.HandleFunc("GET /{$}", home) http.ListenAndServe(":8008", nil) } func home(rw http.ResponseWriter, r *http.Request) { const index string = ` 🚨 redq

redq is active

we're soo back 🥳

` fmt.Fprint(rw, index) }