mirror of
https://github.com/JustKato/FreePad.git
synced 2026-02-23 15:50:46 +02:00
+ Statics
+ Templates
This commit is contained in:
6
main.go
6
main.go
@@ -15,6 +15,12 @@ func main() {
|
|||||||
// Initialize the router
|
// Initialize the router
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
|
|
||||||
|
// Read HTML Templates
|
||||||
|
router.LoadHTMLGlob("templates/**/*.html")
|
||||||
|
|
||||||
|
// Load in static path
|
||||||
|
router.Static("/static", "static/")
|
||||||
|
|
||||||
router.Run(":8080")
|
router.Run(":8080")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user