1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 14:28:59 +09:00

Update router.ts

This commit is contained in:
syuilo 2024-08-22 13:37:47 +09:00
parent 47262f6226
commit 4e791df615

View File

@ -6,7 +6,6 @@
import type { IRouter, RouteDef } from '@/nirax.js';
import { Router } from '@/nirax.js';
import { page } from '@/router/definition.js';
import { $i } from '@/account.js';
const routes: RouteDef[] = [{
path: '/embed/notes/:noteId',
@ -26,5 +25,5 @@ const routes: RouteDef[] = [{
}];
export function createEmbedRouter(path: string): IRouter {
return new Router(routes, path, !!$i, page(() => import('@/pages/not-found.vue')));
return new Router(routes, path, false, page(() => import('@/pages/not-found.vue')));
}