mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-14 07:57:44 +00:00
17 lines
336 B
Go
17 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
|
||
|
}
|