fix(route): restore /gov/shanghai (#15781)
This commit is contained in:
parent
f0059dfca9
commit
9b3f9766dc
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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: {},
|
||||
|
|
|
|||
|
|
@ -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 页' },
|
||||
|
|
|
|||
|
|
@ -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: {},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue