13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
import { Handler, Context } from '../class';
|
|
|
|
export default class Domains extends Handler {
|
|
constructor() {
|
|
super();
|
|
this.endpoint = 'domains';
|
|
}
|
|
|
|
public async handle(ctx: Context) {
|
|
const domains = await ctx.client.db.Domain.find({ 'account.username': ctx.data.username }).lean().exec();
|
|
}
|
|
}
|