add go fiber example
This commit is contained in:
16
go-fiber-simple/cmd/api/routes.go
Normal file
16
go-fiber-simple/cmd/api/routes.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user