Séparer routes statiques et html
Déplacer définition de /static/index.css vers section commentaire `//Static Routes`
This commit is contained in:
parent
aab1dd5a62
commit
999d36bc8b
1 changed files with 4 additions and 1 deletions
|
@ -43,10 +43,13 @@ func Execute() {
|
|||
|
||||
e.GET("/v1", handleV1)
|
||||
|
||||
// Static Routes
|
||||
|
||||
e.GET("/static/index.css", handleStaticCSSIndex)
|
||||
|
||||
// HTML Routes
|
||||
|
||||
e.GET("/", handleIndex)
|
||||
e.GET("/static/index.css", handleStaticCSSIndex)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8080"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue