Log to stdout

This commit is contained in:
Maximilian Friedersdorff 2025-06-26 22:42:03 +01:00
parent 3623fb8e8e
commit 91cc68efe7

View file

@ -5,6 +5,7 @@ import (
"log" "log"
"net" "net"
"net/http" "net/http"
"os"
"forgejo.gwairfelin.com/max/gonotes/internal/conf" "forgejo.gwairfelin.com/max/gonotes/internal/conf"
"forgejo.gwairfelin.com/max/gonotes/internal/notes/views" "forgejo.gwairfelin.com/max/gonotes/internal/notes/views"
@ -18,6 +19,8 @@ func main() {
conf.LoadConfig(confFile) conf.LoadConfig(confFile)
log.SetOutput(os.Stdout)
router := http.NewServeMux() router := http.NewServeMux()
notesRouter := views.GetRoutes("/notes") notesRouter := views.GetRoutes("/notes")