micw/server/api/http/api.go
2024-11-13 22:10:13 +01:00

17 lines
203 B
Go

package http
import (
"context"
"net/http"
)
func NewApi(ctx context.Context, baseRoute string) *http.ServeMux {
if baseRoute == "" {
baseRoute = "/"
}
mux := http.NewServeMux()
return mux
}