diff --git a/cmd/pasty/main.go b/cmd/pasty/main.go index 907ac72..2bb31f9 100644 --- a/cmd/pasty/main.go +++ b/cmd/pasty/main.go @@ -20,6 +20,7 @@ func main() { } defer storage.Current.Terminate() - // Serve the web server + // Serve the web resources + log.Println("Serving the web resources...") panic(web.Serve()) } diff --git a/internal/web/web.go b/internal/web/web.go index 2542132..25b51de 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -13,7 +13,7 @@ import ( "strings" ) -// Serve serves the web server +// Serve serves the web resources func Serve() error { // Create the router router := routing.New() @@ -55,7 +55,7 @@ func Serve() error { router.POST("/documents", hastebinSupportHandler) } - // Serve the web server + // Serve the web resources address := env.Get("WEB_ADDRESS", ":8080") return (&fasthttp.Server{ Handler: router.Handler,