mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
fix: fix api test router init
This commit is contained in:
parent
3afe40083d
commit
63fb923995
@ -197,6 +197,8 @@ func TestRestApi(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
|
r.PathPrefix("/api").Subrouter()
|
||||||
|
r.StrictSlash(true)
|
||||||
restapi.MountApiRoutes(r)
|
restapi.MountApiRoutes(r)
|
||||||
|
|
||||||
const startJobBody string = `{
|
const startJobBody string = `{
|
||||||
|
Loading…
Reference in New Issue
Block a user