diff --git a/apps/app.js b/apps/app.js index 8a3821a..959ee01 100644 --- a/apps/app.js +++ b/apps/app.js @@ -6,7 +6,7 @@ import { HandlePush } from './push.js'; const router = express.Router(); -router.post('/push', HandlePush); +router.get('/push', HandlePush); router.get('/version', async (req, res) => { try { diff --git a/apps/push.js b/apps/push.js index 6f1e9f5..a96fc89 100644 --- a/apps/push.js +++ b/apps/push.js @@ -3,7 +3,6 @@ import path from 'path'; // path 모듈을 가져옵니다. import { fileURLToPath } from 'url'; // ES 모듈에서 파일 경로를 얻기 위해 필요 import { bundleID, apnKey, apnKeyID, apnTeamID } from '../private/config.js'; - const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);