meteologica/service_a/internal/router/router.go

17 lines
234 B
Go

package router
import (
"fmt"
"net/http"
)
func SetupRoutes() *http.ServeMux {
mux := http.NewServeMux()
mux.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "hello world")
})
return mux
}