import { BaseAPI, route } from "../base"; import { UserOut } from "../types/data-contracts"; import { Result } from "../types/non-generated"; export class UserApi extends BaseAPI { public self() { return this.http.get>({ url: route("/users/self") }); } public logout() { return this.http.post({ url: route("/users/logout") }); } public delete() { return this.http.delete({ url: route("/users/self") }); } }