From 3d679fe87819ddd7b18c94f0f2b3dd303ebc792c Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Mon, 26 Jul 2021 13:06:00 -0400 Subject: [PATCH] fix route --- internal/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/api.go b/internal/api/api.go index ffcfa11..03c7c5d 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -65,7 +65,7 @@ func (a *api) Routes() *httprouter.Router { router.GET("/v1/health", a.healthCheckHandler) router.POST("/v1/device", a.upsertDeviceHandler) - router.POST("/v1/device/test", a.testDeviceHandler) + router.POST("/v1/device/:apns/test", a.testDeviceHandler) router.POST("/v1/device/:apns/account", a.upsertAccountHandler) return router