add month long uploading
This commit is contained in:
@@ -32,7 +32,10 @@ func main() {
|
||||
router := gin.Default()
|
||||
router.MaxMultipartMemory = 10 << 30
|
||||
router.LoadHTMLGlob("templates/*")
|
||||
router.StaticFS("/static", gin.Dir("./static", false))
|
||||
var staticPath = gin.Dir("./static", false)
|
||||
fmt.Printf("Static path: %v\n", staticPath)
|
||||
|
||||
router.StaticFS("/static", staticPath)
|
||||
|
||||
// Public Routes
|
||||
router.GET("/", func(c *gin.Context) { c.HTML(200, "index.html", nil) })
|
||||
|
||||
Reference in New Issue
Block a user