diff --git a/cmd/dwelling-upload/main.go b/cmd/dwelling-upload/main.go index 6693991..73dd59d 100644 --- a/cmd/dwelling-upload/main.go +++ b/cmd/dwelling-upload/main.go @@ -91,7 +91,9 @@ func main() { srv.ServeStatic("/assets/*filepath", hand.AssetsFS()) srv.GET("/", hand.Index) srv.POST("/", hand.Upload) + srv.POST("/:hash/delete", hand.Delete) srv.GET("/f/:hash/:name", hand.Download) + srv.DELETE("/:hash", hand.Delete) if err := srv.Start(config.SplitNetworkAddress()); err != nil { logErr.Fatalln("failed to start a server:", err)