mirror of https://github.com/JustKato/FreePad.git
parent
57c4bcf063
commit
cb58f3e87d
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")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue