fix(admin): resolve GET/PUT /admin/settings 404, videos.map crash, and remove legacy CMS sidebar link
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa aghaei committed 2026-08-08 18:26:05 +03:30
1 parent df340143dc
commit 43cf55a8ef
3 files changed
+28 -2

No files matched your search

+14
View File
@@ -228,4 +228,18 @@ export class AdminController {
await this.adminService.deleteDoctor(id);
return { success: true };
}
@Get('settings')
@ApiOperation({ summary: 'دریافت تنظیمات کلی سیستم' })
async getSettings() {
const data = await this.adminService.getSettings();
return { success: true, data };
}
@Put('settings')
@ApiOperation({ summary: 'بروزرسانی تنظیمات کلی سیستم' })
async updateSettings(@Body() body: Record<string, string>) {
const data = await this.adminService.updateSettings(body);
return { success: true, data };
}
}