Multiple pages
This commit is contained in:
@ -20,6 +20,8 @@ func initRouter() *gin.Engine {
|
||||
router.Use(corsMiddleware())
|
||||
|
||||
router.GET("/", handlers.Home)
|
||||
router.GET("/about", handlers.About)
|
||||
|
||||
router.Use(static.Serve("/static", static.LocalFile(STATIC_PATH, false)))
|
||||
|
||||
return router
|
||||
|
||||
Reference in New Issue
Block a user