AFFiNE/apps/docs/entries.ts

18 lines
338 B
TypeScript
Raw Normal View History

import { defineRouter } from 'waku/router/server';
2023-06-25 16:18:23 +03:00
export default defineRouter(
2023-06-25 16:18:23 +03:00
async id => {
switch (id) {
case 'index': {
const { default: AppCreator } = await import('./src/app.js');
return AppCreator(id);
}
2023-06-25 16:18:23 +03:00
default:
return null;
}
},
async () => {
return ['index'];
2023-06-25 16:18:23 +03:00
}
);