Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/podgrab/commit/025e3c41a5a85c6214fe5cf42723b6c0df317406 You should set ROOT_URL correctly, otherwise the web may not work correctly.
pull/91/head
Akhil Gupta 4 years ago
parent 637076b8c2
commit 025e3c41a5

@ -26,9 +26,7 @@ func main() {
db.Migrate()
}
r := gin.Default()
dataPath := os.Getenv("DATA")
r.Static("/webassets", "./webassets")
r.Static("/assets", dataPath)
r.Use(setupSettings())
r.Use(gin.Recovery())
r.Use(location.Default())
@ -143,6 +141,9 @@ func main() {
router = &r.RouterGroup
}
dataPath := os.Getenv("DATA")
router.Static("/webassets", "./webassets")
router.Static("/assets", dataPath)
router.POST("/podcasts", controllers.AddPodcast)
router.GET("/podcasts", controllers.GetAllPodcasts)
router.GET("/podcasts/:id", controllers.GetPodcastById)

Loading…
Cancel
Save