add go fiber example

This commit is contained in:
Mauricio Siu
2024-06-30 20:14:30 -06:00
parent c251b5957b
commit e613f0cae5
10 changed files with 183 additions and 0 deletions

View 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
}