File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 66 "github.com/PythonHacker24/linux-acl-management-backend/api/middleware"
77 "github.com/PythonHacker24/linux-acl-management-backend/internal/auth"
88 "github.com/PythonHacker24/linux-acl-management-backend/internal/health"
9+ "github.com/PythonHacker24/linux-acl-management-backend/internal/traversal"
910)
1011
1112/* all routes for all features are registered here */
@@ -20,4 +21,11 @@ func RegisterRoutes(mux *http.ServeMux) {
2021 mux .Handle ("GET /health" , http .HandlerFunc (
2122 middleware .LoggingMiddleware (health .HealthHandler ),
2223 ))
24+
25+ /* for listing files in a directory */
26+ mux .Handle ("POST /traverse/list-files" , http .HandlerFunc (
27+ middleware .LoggingMiddleware (
28+ middleware .AuthenticationMiddleware (traversal .ListFilesInDirectory ),
29+ ),
30+ ))
2331}
You can’t perform that action at this time.
0 commit comments