mirror-nourybot/cmd/api/routes.go

15 lines
260 B
Go
Raw Normal View History

package main
import (
"net/http"
"github.com/julienschmidt/httprouter"
)
func (app *application) routes() *httprouter.Router {
router := httprouter.New()
router.HandlerFunc(http.MethodGet, "/v1/commands/:name", app.showCommandHandler)
return router
}