Started BE structure / docker for FE dev

This commit is contained in:
Leons Aleksandrovs
2025-07-03 17:55:15 +03:00
parent df38c61069
commit 6130fc8abf
15 changed files with 278 additions and 19 deletions
+19
View File
@@ -0,0 +1,19 @@
package routes
import (
"net/http"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
)
func SetupRoutes() http.Handler {
r := chi.NewRouter()
r.Use(middleware.Logger)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World!"))
})
return r
}