mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00: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