mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-29 15:04:06 +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'];
|
|
}
|
|
);
|