diff --git a/lib/routes/gov/sh/fgw/index.ts b/lib/routes/gov/sh/fgw/index.ts index 15e28473354ff1..ea0c3abec9173e 100644 --- a/lib/routes/gov/sh/fgw/index.ts +++ b/lib/routes/gov/sh/fgw/index.ts @@ -106,7 +106,7 @@ export const handler = async (ctx) => { }; export const route: Route = { - path: '/sh/fgw/:category{.+}?', + path: ['/sh/fgw/:category{.+}?', '/shanghai/fgw/:category{.+}?'], name: '上海市发展和改革委员会', url: 'fgw.sh.gov.cn', maintainers: ['nczitzk'], diff --git a/lib/routes/gov/sh/rsj/ksxm.ts b/lib/routes/gov/sh/rsj/ksxm.ts index c3394751296615..2c456979919200 100644 --- a/lib/routes/gov/sh/rsj/ksxm.ts +++ b/lib/routes/gov/sh/rsj/ksxm.ts @@ -11,7 +11,7 @@ import path from 'node:path'; const rootUrl = 'http://www.rsj.sh.gov.cn'; export const route: Route = { - path: '/sh/rsj/ksxm', + path: ['/sh/rsj/ksxm', '/shanghai/rsj/ksxm'], categories: ['government'], example: '/gov/sh/rsj/ksxm', parameters: {}, diff --git a/lib/routes/gov/sh/wgj/wgj.ts b/lib/routes/gov/sh/wgj/wgj.ts index 9b65d9a17459c4..1e7357b31ccff4 100644 --- a/lib/routes/gov/sh/wgj/wgj.ts +++ b/lib/routes/gov/sh/wgj/wgj.ts @@ -10,7 +10,7 @@ import { art } from '@/utils/render'; import path from 'node:path'; export const route: Route = { - path: '/sh/wgj/:page?', + path: ['/sh/wgj/:page?', '/shanghai/wgj/:page?'], categories: ['government'], example: '/gov/sh/wgj', parameters: { page: '页数,默认第 1 页' }, diff --git a/lib/routes/gov/sh/wsjkw/yqtb/index.ts b/lib/routes/gov/sh/wsjkw/yqtb/index.ts index 316282ada28d44..d0739db8c8f716 100644 --- a/lib/routes/gov/sh/wsjkw/yqtb/index.ts +++ b/lib/routes/gov/sh/wsjkw/yqtb/index.ts @@ -4,7 +4,7 @@ import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { - path: '/sh/wsjkw/yqtb', + path: ['/sh/wsjkw/yqtb', '/shanghai/wsjkw/yqtb'], categories: ['government'], example: '/gov/sh/wsjkw/yqtb', parameters: {}, diff --git a/lib/routes/gov/sh/yjj/index.ts b/lib/routes/gov/sh/yjj/index.ts index f1e7349a28b364..973c2fede7a089 100644 --- a/lib/routes/gov/sh/yjj/index.ts +++ b/lib/routes/gov/sh/yjj/index.ts @@ -7,7 +7,7 @@ import timezone from '@/utils/timezone'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { - path: '/sh/yjj/*', + path: ['/sh/yjj/*', '/shanghai/yjj/*'], name: 'Unknown', maintainers: [], handler,