apollo-backend/cmd/apollo-api/routes.go
Andre Medeiros 7fad5ac9e4 initial pass
2021-05-09 20:51:15 -04:00

16 lines
336 B
Go

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
}