From 9c599b1ef3e6200d0216ad5926158cce7b40959e Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Mon, 9 Sep 2024 09:14:01 +0200 Subject: [PATCH] refactor(schema): remove Route alias decorator BREAKING CHANGE: remove Route alias decorator. Use Operation instead --- packages/platform/platform-serverless/src/exports.ts | 2 +- packages/specs/schema/src/decorators/operations/route.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/platform/platform-serverless/src/exports.ts b/packages/platform/platform-serverless/src/exports.ts index bb3d4a4fb44..138c09d23db 100644 --- a/packages/platform/platform-serverless/src/exports.ts +++ b/packages/platform/platform-serverless/src/exports.ts @@ -1,3 +1,3 @@ export * from "@tsed/di"; -export {Get, Post, Put, Delete, Head, Patch, Options, Route as Lambda} from "@tsed/schema"; +export {Get, Post, Put, Delete, Head, Patch, Options, Operation, Operation as Lambda} from "@tsed/schema"; export * from "@tsed/platform-params"; diff --git a/packages/specs/schema/src/decorators/operations/route.ts b/packages/specs/schema/src/decorators/operations/route.ts index 25e8dcf3c6f..e74fa9dd996 100644 --- a/packages/specs/schema/src/decorators/operations/route.ts +++ b/packages/specs/schema/src/decorators/operations/route.ts @@ -1,11 +1,6 @@ import {OperationVerbs} from "../../constants/OperationVerbs.js"; import {Operation} from "./operation.js"; -/** - * @deprecated Use Operation instead of Route - */ -export const Route = Operation; - /** * This method is just like the `router.METHOD()` methods, except that it matches all HTTP methods (verbs). *