udemy-go-web-2/cmd/web/routes.go

16 lines
206 B
Go

package main
import (
"net/http"
"github.com/go-chi/chi/v5"
)
func (app *application) routes() http.Handler {
mux := chi.NewRouter()
mux.Get("/virtual-terminal", app.VirtualTerminal)
return mux
}