mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add GET previous template version endpoint (#5230)
This commit is contained in:
@@ -349,6 +349,7 @@ func New(options *Options) *API {
|
||||
r.Route("/templateversions", func(r chi.Router) {
|
||||
r.Post("/", api.postTemplateVersionsByOrganization)
|
||||
r.Get("/{templateversionname}", api.templateVersionByOrganizationAndName)
|
||||
r.Get("/{templateversionname}/previous", api.previousTemplateVersionByOrganizationAndName)
|
||||
})
|
||||
r.Route("/templates", func(r chi.Router) {
|
||||
r.Post("/", api.postTemplateByOrganization)
|
||||
|
||||
Reference in New Issue
Block a user