pehpeh API server in golang
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
269B

  1. package main
  2. import (
  3. "io"
  4. "net/http"
  5. "git.thevis.us/skepto/env"
  6. "git.thevis.us/skepto/rex"
  7. )
  8. func main() {
  9. env.Set("PORT", 7777)
  10. app := rex.New()
  11. app.Get("/", func(w http.ResponseWriter, r *http.Request) {
  12. io.WriteString(w, "pehpeh-api")
  13. })
  14. app.Run()
  15. }