mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-01 20:41:18 +00:00
api-client: simplify interface, take turnstile object on init
This commit is contained in:
@@ -3,11 +3,7 @@ import { CobaltRequest } from "./types/request";
|
||||
import { CobaltAPIClient } from "./types/interface";
|
||||
|
||||
export default class UnauthenticatedCobaltAPI extends BaseCobaltAPI implements CobaltAPIClient {
|
||||
constructor(baseURL: string, userAgent?: string) {
|
||||
super(baseURL, userAgent);
|
||||
}
|
||||
|
||||
async request(data: CobaltRequest) {
|
||||
return super._request(data, {});
|
||||
return super.request(data, {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user