|
- package main
-
- import (
- "io"
- "net/http"
-
- "git.thevis.us/skepto/env"
- "git.thevis.us/skepto/rex"
- )
-
- func main() {
- env.Set("PORT", 7777)
-
- app := rex.New()
- app.Get("/", func(w http.ResponseWriter, r *http.Request) {
- io.WriteString(w, "pehpeh-api")
- })
- app.Run()
- }
|