mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: run a terraform plan before creating workspaces with the given template parameters (#1732)
This commit is contained in:
@ -207,6 +207,13 @@ func New(options *Options) *API {
|
||||
r.Get("/parameters", api.templateVersionParameters)
|
||||
r.Get("/resources", api.templateVersionResources)
|
||||
r.Get("/logs", api.templateVersionLogs)
|
||||
r.Route("/dry-run", func(r chi.Router) {
|
||||
r.Post("/", api.postTemplateVersionDryRun)
|
||||
r.Get("/{jobID}", api.templateVersionDryRun)
|
||||
r.Get("/{jobID}/resources", api.templateVersionDryRunResources)
|
||||
r.Get("/{jobID}/logs", api.templateVersionDryRunLogs)
|
||||
r.Patch("/{jobID}/cancel", api.patchTemplateVersionDryRunCancel)
|
||||
})
|
||||
})
|
||||
r.Route("/users", func(r chi.Router) {
|
||||
r.Get("/first", api.firstUser)
|
||||
|
Reference in New Issue
Block a user