feat: implement token-based access for presentation files and add serving endpoint
All checks were successful
Build & Push Docker Image / build (push) Successful in 4m43s
All checks were successful
Build & Push Docker Image / build (push) Successful in 4m43s
This commit is contained in:
@@ -60,9 +60,10 @@ async function start() {
|
||||
await initDatabase();
|
||||
initMailer();
|
||||
|
||||
// Serve uploaded files (branding only — avatars served via /api/auth/avatar/:filename, presentations require auth)
|
||||
// Serve uploaded files (avatars are served via /api/auth/avatar/:filename)
|
||||
const uploadsPath = path.join(__dirname, '..', 'uploads');
|
||||
app.use('/uploads/branding', express.static(path.join(uploadsPath, 'branding')));
|
||||
// Presentations are served via /api/rooms/presentations/:filename?token=… (HMAC-protected)
|
||||
|
||||
// API Routes
|
||||
app.use('/api/auth', authRoutes);
|
||||
|
||||
Reference in New Issue
Block a user