Skip to content

Commit

Permalink
refactor(schema): remove Route alias decorator
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove Route alias decorator. Use Operation instead
  • Loading branch information
Romakita committed Sep 11, 2024
1 parent c859cab commit 9c599b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/platform/platform-serverless/src/exports.ts
Original file line number Diff line number Diff line change
@@ -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";
5 changes: 0 additions & 5 deletions packages/specs/schema/src/decorators/operations/route.ts
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down

0 comments on commit 9c599b1

Please sign in to comment.