switched api back to main thread
All checks were successful
build and deploy portfolio / build (push) Successful in 38s
build and deploy portfolio / publish-docs (push) Successful in 5s
build and deploy portfolio / publish-portfolio (push) Successful in 3s

This commit is contained in:
darius 2025-02-25 22:18:05 +01:00
parent ad7a1e79e3
commit d6a3783b20

View File

@ -48,13 +48,8 @@ func main() {
//init api routes //init api routes
apiMux := api.Routes() apiMux := api.Routes()
//run api server //run api server
go func() { err = http.ListenAndServe(":4001", c.Handler(apiMux))
err := http.ListenAndServe(":4001", c.Handler(apiMux))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
}()
// block main thread
select {}
} }