Sfoglia il codice sorgente

added test prov endpoint

Alexander Belanger 5 anni fa
parent
commit
210dd923a2
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      server/router/router.go

+ 9 - 0
server/router/router.go

@@ -177,6 +177,15 @@ func New(a *api.App) *chi.Mux {
 			),
 		)
 
+		// /api/projects/{project_id}/provision routes
+
+		// TODO -- restrict this endpoint
+		r.Method(
+			"GET",
+			"/projects/{project_id}/provision/test",
+			requestlog.NewHandler(a.HandleProvisionTest, l),
+		)
+
 		// /api/projects/{project_id}/clusters routes
 		r.Method(
 			"GET",