2025-04-14 14:54:18 +00:00

18 lines
351 B
JavaScript

import { HttpRequestHandler } from "../Handler"
export default class Endpoint {
static _constructed = false
static _class = true
constructor(method, context) {
this._constructed = true
this.context = context
if (typeof method === "function") {
this.run = method
}
this.handler = new HttpRequestHandler(this.run, this.context)
}
}