Download templates on boot

This commit is contained in:
Maximilian Friedersdorff 2025-02-04 20:27:32 +00:00
parent 30339c6b16
commit 3ad3666002
7 changed files with 59 additions and 11 deletions

View file

@ -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 {