Séparer routes statiques et html #24
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