新增邮件发送和管理员功能

This commit is contained in:
eoao
2025-05-29 17:38:50 +08:00
parent de742d31e7
commit 2341d14b2d
364 changed files with 24202 additions and 1079 deletions

View File

@@ -5,9 +5,19 @@ import settingService from '../service/setting-service';
app.put('/setting/set', async (c) => {
await settingService.set(c, await c.req.json());
return c.json(result.ok());
})
});
app.get('/setting/query', async (c) => {
const setting = await settingService.query(c);
const setting = await settingService.get(c);
return c.json(result.ok(setting));
})
});
app.put('/setting/setBackground', async (c) => {
const key = await settingService.setBackground(c, await c.req.json());
return c.json(result.ok(key));
});
app.delete('/setting/physicsDeleteAll', async (c) => {
await settingService.physicsDeleteAll(c);
return c.json(result.ok());
});