Files
Momento/memento-mobile/lib/config.ts
Antigravity 0ef12f7399 fix(mobile): render notes with marked (proper Markdown→HTML) + design CSS soigné
- Install marked package (UMD, hors-ligne)
- buildHtml: parse Markdown server-side avec marked, inject HTML statique
- CSS: typographie soignée, blockquotes brandés, code dark, tables propres
- Plus de CDN, fonctionne hors-ligne

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-29 16:43:24 +00:00

19 lines
666 B
TypeScript

// API base URL — change for dev/prod
export const API_URL = __DEV__
? 'http://192.168.1.83:3000' // serveur de dev local
: 'https://memento-note.com'
export const ENDPOINTS = {
login: `${API_URL}/api/mobile/auth/login`,
logout: `${API_URL}/api/mobile/auth/logout`,
me: `${API_URL}/api/mobile/auth/me`,
notebooks: `${API_URL}/api/mobile/notebooks`,
notes: (notebookId?: string) =>
notebookId
? `${API_URL}/api/mobile/notes?notebookId=${notebookId}`
: `${API_URL}/api/mobile/notes`,
note: (id: string) => `${API_URL}/api/mobile/notes/${id}`,
search: `${API_URL}/api/mobile/search`,
dailyNote: `${API_URL}/api/notes/daily`,
}