mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 13:14:55 +08:00
🐞 fix: 修复 hellogithub #60
This commit is contained in:
@@ -4,7 +4,7 @@ import { get } from "../utils/getData.js";
|
|||||||
import getTime from "../utils/getTime.js";
|
import getTime from "../utils/getTime.js";
|
||||||
|
|
||||||
export const handleRoute = async (c: ListContext, noCache: boolean) => {
|
export const handleRoute = async (c: ListContext, noCache: boolean) => {
|
||||||
const sort = c.req.query("sort") || "hot";
|
const sort = c.req.query("sort") || "featured";
|
||||||
const { fromCache, data, updateTime } = await getList({ sort }, noCache);
|
const { fromCache, data, updateTime } = await getList({ sort }, noCache);
|
||||||
const routeData: RouterData = {
|
const routeData: RouterData = {
|
||||||
name: "hellogithub",
|
name: "hellogithub",
|
||||||
@@ -15,8 +15,8 @@ export const handleRoute = async (c: ListContext, noCache: boolean) => {
|
|||||||
sort: {
|
sort: {
|
||||||
name: "排行榜分区",
|
name: "排行榜分区",
|
||||||
type: {
|
type: {
|
||||||
hot: "热门",
|
featured: "精选",
|
||||||
last: "最新",
|
all: "全部",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user