Added storage endpoint and show on indes

This commit is contained in:
2025-08-07 22:38:27 +02:00
parent 716c6730b5
commit c7fd393cbf
6 changed files with 128 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ func main() {
r.GET("/", controllers.HandleIndex)
r.POST("/upload", controllers.HandleFileUpload)
r.GET("/uploads/:fileID/:filename", controllers.HandleFileDownload)
r.GET("/storage", controllers.HandleStorageInfo)
r.GET("/health", func(c *gin.Context) { c.JSON(200, gin.H{"status": "ok"}) })
if port := os.Getenv("PORT"); port != "" {