Download templates on boot
This commit is contained in:
parent
30339c6b16
commit
3ad3666002
7 changed files with 59 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
|
|
@ -24,7 +25,8 @@ func main() {
|
|||
),
|
||||
),
|
||||
)
|
||||
log.Fatal(http.ListenAndServe(":8080", router))
|
||||
addr := fmt.Sprintf(":%d", conf.Conf.Port)
|
||||
log.Fatal(http.ListenAndServe(addr, router))
|
||||
}
|
||||
|
||||
func logger(next http.Handler) http.Handler {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue