add proper menu
This commit is contained in:
1 parent
b7d50f8b9d
commit
7ca2678a6f
11 files changed
+136
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user