Changeset 0.4.3 (#32)
This commit is contained in:
@@ -96,6 +96,7 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
protected.DELETE("/api-configs/:id", apiCfg.DeleteConfig)
|
||||
protected.GET("/api-configs/:id/models", apiCfg.ListModels)
|
||||
protected.GET("/models", apiCfg.ListAllModels)
|
||||
protected.GET("/models/enabled", apiCfg.ListEnabledModels)
|
||||
|
||||
// User Settings & Profile
|
||||
protected.GET("/profile", settings.GetProfile)
|
||||
@@ -118,6 +119,13 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
admin.GET("/settings/:key", adm.GetGlobalSetting)
|
||||
admin.PUT("/settings/:key", adm.UpdateGlobalSetting)
|
||||
admin.GET("/stats", adm.GetStats)
|
||||
admin.GET("/configs", adm.ListGlobalConfigs)
|
||||
admin.POST("/configs", adm.CreateGlobalConfig)
|
||||
admin.DELETE("/configs/:id", adm.DeleteGlobalConfig)
|
||||
admin.GET("/models", adm.ListModelConfigs)
|
||||
admin.POST("/models/fetch", adm.FetchModels)
|
||||
admin.PUT("/models/:id", adm.UpdateModelConfig)
|
||||
admin.DELETE("/models/:id", adm.DeleteModelConfig)
|
||||
}
|
||||
|
||||
routes := r.Routes()
|
||||
@@ -153,6 +161,7 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
"GET /api/v1/api-configs/:id/models",
|
||||
// Models
|
||||
"GET /api/v1/models",
|
||||
"GET /api/v1/models/enabled",
|
||||
// Profile & Settings
|
||||
"GET /api/v1/profile",
|
||||
"PUT /api/v1/profile",
|
||||
@@ -170,6 +179,13 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
"GET /api/v1/admin/settings/:key",
|
||||
"PUT /api/v1/admin/settings/:key",
|
||||
"GET /api/v1/admin/stats",
|
||||
"GET /api/v1/admin/configs",
|
||||
"POST /api/v1/admin/configs",
|
||||
"DELETE /api/v1/admin/configs/:id",
|
||||
"GET /api/v1/admin/models",
|
||||
"POST /api/v1/admin/models/fetch",
|
||||
"PUT /api/v1/admin/models/:id",
|
||||
"DELETE /api/v1/admin/models/:id",
|
||||
}
|
||||
|
||||
for _, e := range expected {
|
||||
|
||||
Reference in New Issue
Block a user