@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
65 lines (64 loc) • 1.85 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiRoutes = void 0;
exports.ApiRoutes = {
auth: {
login: '/auth/login',
register: '/auth/register',
refresh: '/auth/refresh',
verifyEmail: '/auth/verify-email',
sendVerificationEmail: '/auth/send-verification-email',
forgotPassword: '/auth/forgot-password',
resetPassword: '/auth/reset-password',
logout: '/auth/logout',
},
user: {
get: '/user/profile',
update: '/user/profile',
preferences: '/user/preferences',
deactivate: '/user/deactivate',
regions: '/user/regions',
},
lms: {
progress: '/lms/progress',
enroll: '/lms/enroll',
track: '/lms/track',
courseList: '/lms/courses',
courseDetail: '/lms/courses/:id', // dynamic route
},
social: {
feed: '/social/feed',
post: '/social/post',
comment: '/social/comment',
like: '/social/like',
profile: '/social/profile/:userId',
},
trial: {
enroll: '/trial/enroll',
consent: '/trial/consent',
surveys: '/trial/surveys',
participationStatus: '/trial/status',
},
role: {
assign: '/role/assign',
revoke: '/role/revoke',
list: '/role/list',
current: '/role/current',
},
admin: {
users: '/admin/users',
userDetail: '/admin/users/:userId',
metrics: '/admin/metrics',
systemStatus: '/admin/system-status',
},
notifications: {
list: '/notifications',
read: '/notifications/read/:id',
markAllRead: '/notifications/mark-all-read',
},
system: {
ping: '/system/ping',
version: '/system/version',
health: '/system/health',
},
};