Expose private operational evolution timeline
This commit is contained in:
@@ -129,6 +129,7 @@ export function createApp(options = process.env) {
|
||||
}
|
||||
if (route.startsWith('/api/')) {
|
||||
if (!session(req)) return json(res, 401, { error: '请先登录' });
|
||||
if (req.method === 'GET' && route === '/api/evolution') return json(res, 200, await jsonFile('evolution.json', { schema_version: 1, events: [] }));
|
||||
if (req.method === 'GET' && route === '/api/dashboard') {
|
||||
const list = await reports();
|
||||
const config = await jsonFile('config.json', { title: 'PawPlay 运营台', timezone: 'Asia/Shanghai', budget: { billing_period: 'pending' } });
|
||||
|
||||
Reference in New Issue
Block a user