diff --git a/internal/route/main.go b/internal/route/main.go index 4592369..a917c44 100644 --- a/internal/route/main.go +++ b/internal/route/main.go @@ -221,7 +221,7 @@ func RoutesProtected(r *mux.Router, bd *gorm.DB) { r.HandleFunc("/validate-path", download.PathValidationHandler) r.HandleFunc("/folders", renders.StreamHandler) - r.HandleFunc("/folders/detail", renders.DetailHandler) + r.HandleFunc("/folders/detail", renders.DetailHandler).Methods("GET") //API Scan folder diff --git a/templates/_file_list.pages.tmpl b/templates/_file_list.pages.tmpl index d52f0b7..0cbb074 100644 --- a/templates/_file_list.pages.tmpl +++ b/templates/_file_list.pages.tmpl @@ -2,11 +2,7 @@ {{- range .Entries }}