feat(routing): add routing setup
1 files changed, 13 insertions(+), 0 deletions(-) A internal/handlers/routes.go
A internal/handlers/routes.go => internal/handlers/routes.go +13 -0
@@ 0,0 1,13 @@ +package handlers + +import ( + "net/http" +) + +func SetupRoutes() http.Handler { + mux := http.NewServeMux() + mux.Handle("/{$}", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("Hello world!")) + })) + return mux +}