feat(accounts): add admin accounts and user preferences
Remove public registration, support administrator-managed accounts, and persist personal preferences. Refs #2 #5 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
11
frontend/src/api/preferences.ts
Normal file
11
frontend/src/api/preferences.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { api } from './client'
|
||||
|
||||
export interface UserPreferences {
|
||||
language: 'fr' | 'en'
|
||||
ranking_mode: 'title' | 'title_content'
|
||||
}
|
||||
|
||||
export const preferencesApi = {
|
||||
get: () => api.get<UserPreferences>('/me/preferences'),
|
||||
update: (preferences: UserPreferences) => api.put<UserPreferences>('/me/preferences', preferences),
|
||||
}
|
||||
Reference in New Issue
Block a user