Files
scannerbot/server/api/api.go
T
2026-05-13 22:51:55 +00:00

22 lines
303 B
Go

package api
import (
"net/http"
"github.com/go-chi/chi/v5"
)
func Start() {
r := chi.NewRouter()
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("hello world"))
})
r.Route("/whoami", func(r chi.Router) {
r.Get("/", Whoami)
})
http.ListenAndServe(":3000", r)
}