fix: FCM API URL에 v1 경로 추가

- /api/push/* → /api/v1/push/*
- 라우트 경로 불일치로 404 발생하던 문제 해결
This commit is contained in:
2025-12-18 21:08:41 +09:00
parent 6914ef1013
commit dd225d59af

View File

@@ -116,7 +116,7 @@
headers['X-API-KEY'] = CONFIG.apiKeyHeader;
}
const response = await fetch(`${CONFIG.apiBaseUrl}/api/push/register-token`, {
const response = await fetch(`${CONFIG.apiBaseUrl}/api/v1/push/register-token`, {
method: 'POST',
headers,
body: JSON.stringify({
@@ -149,7 +149,7 @@
try {
if (accessToken) {
await fetch(`${CONFIG.apiBaseUrl}/api/push/unregister-token`, {
await fetch(`${CONFIG.apiBaseUrl}/api/v1/push/unregister-token`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',