diff options
Diffstat (limited to 'cmd/web/routes.go')
-rw-r--r-- | cmd/web/routes.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/web/routes.go b/cmd/web/routes.go new file mode 100644 index 0000000..2761d99 --- /dev/null +++ b/cmd/web/routes.go @@ -0,0 +1,10 @@ +package main + +import "net/http" + +func (app *application) routes() *http.ServeMux { + mux := http.NewServeMux() + + mux.HandleFunc("/", app.home) + return mux +} |