@Summary Unarchive template version @ID unarchive-template-version @Security CoderSessionToken @Produce json @Tags Templates @Param templateversion path string true "Template version ID" format(uuid) @Success 200 {object} codersdk.Response @Router /api/v2/templateversions/{templateversion}/unarchive
()
| 1268 | // @Success 200 {object} codersdk.Response |
| 1269 | // @Router /api/v2/templateversions/{templateversion}/unarchive [post] |
| 1270 | func (api *API) postUnarchiveTemplateVersion() func(rw http.ResponseWriter, r *http.Request) { |
| 1271 | return api.setArchiveTemplateVersion(false) |
| 1272 | } |
| 1273 | |
| 1274 | //nolint:revive |
| 1275 | func (api *API) setArchiveTemplateVersion(archive bool) func(rw http.ResponseWriter, r *http.Request) { |
no test coverage detected