fixing cors issue and ci/cd
CI/CD / Backend Unit Tests (push) Successful in 1m52s
CI/CD / Deploy (push) Successful in 1m46s

This commit is contained in:
2026-06-10 22:54:00 +02:00
parent ee4eff34c9
commit 30d2abd4c5
6 changed files with 37 additions and 163 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const BASE_URL = process.env.EXPO_PUBLIC_API_URL; // TODO change this
const BASE_URL = process.env.EXPO_PUBLIC_API_URL+'/api';
export type NotificationType = 'PUSH_NOTIFICATION' | 'NO_NOTIFICATION';
function authHeader(token?: string) {
+1 -1
View File
@@ -18,7 +18,7 @@ export async function registerDeviceToken(authToken: string): Promise<void> {
const fcmToken = await getToken(messaging);
await fetch(`${process.env.EXPO_PUBLIC_API_URL}/device-tokens/register`, {
await fetch(`${process.env.EXPO_PUBLIC_API_URL}/api/device-tokens/register`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',