Răsfoiți Sursa

added test prov endpoint

Alexander Belanger 5 ani în urmă
părinte
comite
210dd923a2
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  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",