~gloatingfiddle/coffeebeans

0ea807c279c33d305e381fcf8c8f17fb8f513e4c — David Hagerty a month ago 837d1d9
feat(routing): add routing setup
1 files changed, 13 insertions(+), 0 deletions(-)

A internal/handlers/routes.go
A internal/handlers/routes.go => internal/handlers/routes.go +13 -0
@@ 0,0 1,13 @@
package handlers

import (
	"net/http"
)

func SetupRoutes() http.Handler {
	mux := http.NewServeMux()
	mux.Handle("/{$}", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte("Hello world!"))
	}))
	return mux
}