Skip to content

Commit

Permalink
fix(route): update route of TJU (DIYgod#16772)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanZeng423 committed Sep 16, 2024
1 parent f718779 commit 6de50fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/routes/tju/cic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const route: Route = {
};

async function handler(ctx) {
const type = ctx.params && ctx.req.param('type');
const type = ctx.req.param('type');
let path, subtitle;

switch (type) {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/tju/news/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const route: Route = {
};

async function handler(ctx) {
const type = ctx.params && ctx.req.param('type');
const type = ctx.req.param('type');
let path, subtitle;

switch (type) {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/tju/oaa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const route: Route = {
};

async function handler(ctx) {
const type = ctx.params && ctx.req.param('type');
const type = ctx.req.param('type');
let path, subtitle;

switch (type) {
Expand Down

0 comments on commit 6de50fb

Please sign in to comment.