9466f91466
* root: move webapp to /web * root: fix static build * root: fix static files not being served for e2e tests
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { Primitive } from "lit-html/lib/parts";
|
|
import { DefaultClient } from "./client";
|
|
|
|
export class User {
|
|
pk?: number;
|
|
username?: string;
|
|
name?: string;
|
|
is_superuser?: boolean;
|
|
email?: boolean;
|
|
avatar?: string;
|
|
|
|
static me(): Promise<User> {
|
|
return DefaultClient.fetch<User>("core", "users", "me");
|
|
}
|
|
}
|