Add Time into the news system & Add a new API keypoint into the home page.

This commit is contained in:
yuanhau 2025-05-25 09:49:35 +08:00
parent c2ec1b6668
commit 3019c06ec1
6 changed files with 45 additions and 24 deletions

View file

@ -1,16 +1,16 @@
export default defineEventHandler(async (event) => {
return {
data: [
{
text: "國內",
url: "domestic",
default: true,
},
{
text: "國外",
url: "global",
default: false,
},
]
}
})
{
text: "國內",
url: "domestic",
default: true,
},
{
text: "國外",
url: "global",
default: false,
},
],
};
});