17 lines
290 B
Go
17 lines
290 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
"github.com/julienschmidt/httprouter"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (app *application) routes() *httprouter.Router {
|
||
|
|
router := httprouter.New()
|
||
|
|
|
||
|
|
// Define the available routes
|
||
|
|
router.HandlerFunc(http.MethodGet, "/v1/healthcheck", app.healthcheckHandler)
|
||
|
|
|
||
|
|
return router
|
||
|
|
}
|