mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add router
This commit is contained in:
parent
cb61a2a8b7
commit
2357f645ce
4 changed files with 35 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ import (
|
|||
|
||||
"github.com/joho/godotenv"
|
||||
"github.com/lmittmann/tint"
|
||||
|
||||
"backend/internal/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
@ -17,5 +19,5 @@ func main() {
|
|||
slog.Error("Error loading .env file", slog.Any("error", err))
|
||||
}
|
||||
|
||||
slog.Info("Starting server", slog.Any("port", os.Getenv("PORT")))
|
||||
server.NewRouter()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue