1
0

add: the description of 2 endpoints in backend

This commit is contained in:
alikia2x (寒寒) 2025-09-22 23:02:02 +08:00
parent 4687edcbda
commit 19e2293138
2 changed files with 7 additions and 2 deletions

View File

@ -53,7 +53,8 @@ export const rootHandler = new Elysia().get(
},
detail: {
summary: "Root route",
description: ""
description: "The root path. It returns a JSON object containing a random virtual singer, \
backend version, current server time and other miscellaneous information."
}
}
);

View File

@ -88,7 +88,11 @@ export const getSongInfoHandler = new Elysia({ prefix: "/song" }).get(
},
detail: {
summary: "Get information of a song",
description: ""
description: "This endpoint retrieves detailed information about a song using its unique ID, \
which can be provided in several formats. \
The endpoint accepts a song ID in either a numerical format as the internal ID in our database\
or as a bilibili video ID (either av or BV format). \
It responds with the song's name, bilibili ID (av), producer, duration, and associated singers."
}
}
);