From 1d522cc054b7374b70db2c56698759c93a3608c9 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 20 Apr 2021 14:25:57 -0700 Subject: [PATCH] Add delete functionality (#13) --- server.go | 2 +- templates/view.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index bba047a..0a71445 100644 --- a/server.go +++ b/server.go @@ -295,7 +295,7 @@ func (s *Server) initRoutes() { s.router.DELETE("/p/:uuid", s.DeleteHandler()) // Add alternate path since form actions don't support method=DELETE // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE - s.router.POST("/p/:uuid/delete", s.DeleteHandler()) + s.router.POST("/delete/:uuid", s.DeleteHandler()) } // NewServer ... diff --git a/templates/view.html b/templates/view.html index 776668f..729eed3 100644 --- a/templates/view.html +++ b/templates/view.html @@ -16,7 +16,7 @@