- 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>
19 lines
666 B
TypeScript
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`,
|
|
}
|