bug fixes file deletions and more

This commit is contained in:
Zoe
2024-09-09 01:35:33 -05:00
parent 86ef860568
commit 70a9bcd904
14 changed files with 325 additions and 51 deletions

View File

@@ -74,10 +74,11 @@ func main() {
// everything past this needs auth
api.Use(middleware.SessionMiddleware(db))
api.GET("/user", routes.GetUser)
api.GET("/user/usage", routes.GetUsage)
api.POST("/upload*", routes.UploadFile)
api.GET("/files*", routes.GetFiles)
api.POST("/files/upload*", routes.UploadFile)
api.GET("/files/get/*", routes.GetFiles)
api.GET("/files/download/*", routes.GetFile)
api.POST("/files/delete*", routes.DeleteFiles)
}
// redirects to the proper pages if you are trying to access one that expects you have/dont have an api key