fix(route): restore /gov/shanghai (#15781)

This commit is contained in:
Ethan Shen 2024-06-01 00:16:39 +08:00 committed by GitHub
parent f0059dfca9
commit 9b3f9766dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -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'],

View File

@ -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: {},

View File

@ -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 页' },

View File

@ -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: {},

View File

@ -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,