17 lines
203 B
Go
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
|
|
}
|