Skip to content

Commit

Permalink
fix(route): restore /gov/shanghai (#15781)
Browse files Browse the repository at this point in the history
  • Loading branch information
nczitzk authored May 31, 2024
1 parent f0059df commit 9b3f976
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/routes/gov/sh/fgw/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/gov/sh/rsj/ksxm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/gov/sh/wgj/wgj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 页' },
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/gov/sh/wsjkw/yqtb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/gov/sh/yjj/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b3f976

Please sign in to comment.