diff --git a/docker-compose.yml b/docker-compose.yml index f077d53..bd9c3c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,7 +77,7 @@ services: EMAIL_USE_TLS: "${EMAIL_USE_TLS:-true}" # Push Notifications (Direct APNs/FCM - no Gorush) - APNS_AUTH_KEY_PATH: "/certs/apns_key.p8" + APNS_AUTH_KEY_PATH: ${APNS_AUTH_KEY_PATH} APNS_AUTH_KEY_ID: ${APNS_AUTH_KEY_ID} APNS_TEAM_ID: ${APNS_TEAM_ID} APNS_TOPIC: ${APNS_TOPIC:-com.example.casera} diff --git a/internal/router/router.go b/internal/router/router.go index 1e7a0d7..7b05fa1 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -50,8 +50,8 @@ func SetupRouter(deps *Dependencies) *echo.Echo { e.Validator = customvalidator.NewCustomValidator() e.HTTPErrorHandler = customHTTPErrorHandler - // Add trailing slash middleware (before other middleware) - e.Pre(middleware.AddTrailingSlash()) + // NOTE: Removed AddTrailingSlash() middleware - it conflicted with admin routes + // which don't use trailing slashes. Mobile API routes explicitly include trailing slashes. // Global middleware e.Use(utils.EchoRecovery())