1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00
Daggerbot-TS/src/helpers/TSClient.ts

14 lines
313 B
TypeScript
Raw Normal View History

interface TokenService_API {
2023-10-12 17:45:44 -04:00
main: string,
octokit: string,
youtube: string,
mongodb_uri: string,
2023-10-12 17:45:44 -04:00
redis_uri: string
}
export default class TSClient {
static async Token() {
2023-10-04 22:01:39 -04:00
return await fetch('http://192.168.68.18/daggerbot').then(x=>x.json()) as Promise<TokenService_API>
}
}