feat(api): delete template endpoint

This commit is contained in:
Leons Aleksandrovs
2025-07-13 14:26:09 +03:00
parent fa095def44
commit e969d56ab6
4 changed files with 45 additions and 3 deletions
@@ -33,9 +33,9 @@ function RouteComponent() {
const a = confirm("Are you sure?");
if (!a) return;
requests.delete(`/template/${templateId}`, {
requests.delete(`/templates/${templateId}`, {
success() {
navigate({ to: "/" });
navigate({ to: "/templates" });
},
});
};