add other files view/edit

This commit is contained in:
nahakubuilde
2025-08-25 18:32:31 +01:00
parent c85372e695
commit a306bf2cfd
7 changed files with 383 additions and 10 deletions

View File

@@ -74,6 +74,8 @@ func (s *Server) setupRoutes() {
s.router.GET("/serve_stored_image/:filename", h.ServeStoredImageHandler)
s.router.GET("/download/*path", h.DownloadHandler)
s.router.GET("/view_text/*path", h.ViewTextHandler)
s.router.GET("/edit_text/*path", h.EditTextPageHandler)
s.router.POST("/edit_text/*path", h.PostEditTextHandler)
// Upload routes
s.router.POST("/upload", h.UploadHandler)