mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 14:31:50 +03:00
18 lines
338 B
TypeScript
18 lines
338 B
TypeScript
import { defineRouter } from 'waku/router/server';
|
|
|
|
export default defineRouter(
|
|
async id => {
|
|
switch (id) {
|
|
case 'index': {
|
|
const { default: AppCreator } = await import('./src/app.js');
|
|
return AppCreator(id);
|
|
}
|
|
default:
|
|
return null;
|
|
}
|
|
},
|
|
async () => {
|
|
return ['index'];
|
|
}
|
|
);
|