feat: title on pages
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Package server provides the http server for schreifuchs.ch.
|
||||
package server
|
||||
|
||||
import (
|
||||
@@ -17,6 +18,7 @@ type Server struct {
|
||||
cfg config.Cfg
|
||||
}
|
||||
|
||||
// Start starts a new http server. When the context gets canceled, the server stops gracefully.
|
||||
func Start(ctx context.Context, cfg config.Cfg) (err error) {
|
||||
port, _ := strconv.Atoi(os.Getenv("PORT"))
|
||||
if port == 0 {
|
||||
|
||||
Reference in New Issue
Block a user