feat: support custom panel title

This commit is contained in:
copilot-swe-agent[bot]
2026-07-09 17:39:16 +00:00
committed by GitHub
parent 29ce610f6f
commit 4dc3865d96
9 changed files with 147 additions and 37 deletions
+18
View File
@@ -442,6 +442,24 @@ export default (app: Router) => {
},
);
route.put(
'/config/panel-title',
celebrate({
body: Joi.object({
panelTitle: Joi.string().max(100).allow('').allow(null),
}),
}),
async (req: Request, res: Response, next: NextFunction) => {
try {
const systemService = Container.get(SystemService);
const result = await systemService.updatePanelTitle(req.body);
res.send(result);
} catch (e) {
return next(e);
}
},
);
route.put(
'/config/global-ssh-key',
celebrate({