fix: FCM API URL에 v1 경로 추가
- /api/push/* → /api/v1/push/* - 라우트 경로 불일치로 404 발생하던 문제 해결
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user