server: implement chi

This commit is contained in:
2026-05-12 02:30:13 +00:00
parent 40768f0c3a
commit 9dcbd54387
4 changed files with 31 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
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"))
})
http.ListenAndServe(":3000", r)
}