From 9b3f9766dcdb2fdd77c4c220b95f4c030c691169 Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:16:39 +0800 Subject: [PATCH] fix(route): restore /gov/shanghai (#15781) --- lib/routes/gov/sh/fgw/index.ts | 2 +- lib/routes/gov/sh/rsj/ksxm.ts | 2 +- lib/routes/gov/sh/wgj/wgj.ts | 2 +- lib/routes/gov/sh/wsjkw/yqtb/index.ts | 2 +- lib/routes/gov/sh/yjj/index.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/routes/gov/sh/fgw/index.ts b/lib/routes/gov/sh/fgw/index.ts index 15e284733..ea0c3abec 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 c33947512..2c4569799 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 9b65d9a17..1e7357b31 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 316282ada..d0739db8c 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 f1e7349a2..973c2fede 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,