micw/server/api/http/api.go

17 lines
203 B
Go
Raw Normal View History

2024-11-13 21:10:13 +00:00
package http
import (
"context"
"net/http"
)
func NewApi(ctx context.Context, baseRoute string) *http.ServeMux {
if baseRoute == "" {
baseRoute = "/"
}
mux := http.NewServeMux()
return mux
}