mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-27 22:38:39 +09:00
Update router.ts
This commit is contained in:
parent
47262f6226
commit
4e791df615
@ -6,7 +6,6 @@
|
|||||||
import type { IRouter, RouteDef } from '@/nirax.js';
|
import type { IRouter, RouteDef } from '@/nirax.js';
|
||||||
import { Router } from '@/nirax.js';
|
import { Router } from '@/nirax.js';
|
||||||
import { page } from '@/router/definition.js';
|
import { page } from '@/router/definition.js';
|
||||||
import { $i } from '@/account.js';
|
|
||||||
|
|
||||||
const routes: RouteDef[] = [{
|
const routes: RouteDef[] = [{
|
||||||
path: '/embed/notes/:noteId',
|
path: '/embed/notes/:noteId',
|
||||||
@ -26,5 +25,5 @@ const routes: RouteDef[] = [{
|
|||||||
}];
|
}];
|
||||||
|
|
||||||
export function createEmbedRouter(path: string): IRouter {
|
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')));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user