migrate mobile with new endpoints

This commit is contained in:
m
2026-07-28 20:28:32 +02:00
parent d40ca87075
commit 9c699446dc
28 changed files with 799 additions and 444 deletions
+12 -6
View File
@@ -1,16 +1,22 @@
export const API_BASE_URL = process.env.EXPO_PUBLIC_API_BASE_URL || 'http://192.168.1.17:8080/api/v1';
export const ENDPOINTS = {
FILES: '/files',
FILE: '/files',
UPLOAD: '/files/upload',
SEARCH: '/files/search',
MOVE: '/files/move',
FOLDERS: '/files/folders',
RESOURCES: '/resources',
RESOURCE: '/resources',
UPLOAD: '/resources/upload',
MOVE: '/resources/move',
FOLDERS: '/resources/folders',
VARIANT: '/variants',
DEDUP_CHECK: '/resources/dedup-check',
OCR_JOBS: '/ocr/jobs',
HEALTH: '/health',
AUTH_LOGIN: '/auth/login',
AUTH_REGISTER: '/auth/register',
AUTH_REFRESH: '/auth/refresh',
AUTH_LOGOUT: '/auth/logout',
DEVICES: '/devices',
SYNC_PULL: '/sync/pull',
SYNC_PUSH: '/sync/push',
SHARE: '/resources/:id/share',
ACCESS: '/resources/:id/access',
} as const;