apollo-backend/cmd/apollo-api/routes.go

17 lines
336 B
Go
Raw Normal View History

2021-05-10 00:51:15 +00:00
package main
import (
"github.com/julienschmidt/httprouter"
)
func (app *application) routes() *httprouter.Router {
router := httprouter.New()
router.GET("/v1/health", app.healthCheckHandler)
router.POST("/v1/device", app.upsertDeviceHandler)
router.POST("/v1/device/:apns/account", app.upsertAccountHandler)
return router
}