diff --git a/src/route.ts b/src/route.ts index 266d4a7..c70d6ba 100644 --- a/src/route.ts +++ b/src/route.ts @@ -137,7 +137,6 @@ export class Route void;[key: string]: any }, opts?: AddOpts) { router.add(this, opts); } - setData(data: any) { - this.data = data; - return this; - } throw(code?: number | string, message?: string, tips?: string): void; throw(...args: any[]) { throw new CustomError(...args);