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 @@