From 360e01ffb8ececb2cd86248fce56397d3e895474 Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Tue, 20 Aug 2024 15:07:23 +0900 Subject: [PATCH] =?UTF-8?q?[=E2=9C=A8]=20push=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/app.js | 2 +- apps/push.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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);