add proper menu

This commit is contained in:
HorizonCode committed 2024-12-13 10:39:17 +01:00
1 parent b7d50f8b9d
commit 7ca2678a6f
11 files changed
+136 -17

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import ky from "ky";
const API_ENDPOINT = "https://osu.direct/api/";
export const osudirect = {
osu: async (mapId: number): Promise<string | undefined> => {
try {
return await ky(API_ENDPOINT + `osu/${mapId}?raw`).text();
} catch {
return undefined;
}
},
};