We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2af16 commit ba7951cCopy full SHA for ba7951c
1 file changed
express-zod-api/src/endpoint.ts
@@ -44,7 +44,7 @@ export type Handler<IN, OUT, OPT> = (params: {
44
export abstract class AbstractEndpoint {
45
/** @desc Enables nested routes within the path assigned to the subject */
46
public nest(routing: Routing): Routing {
47
- return Object.assign(routing, { "": this });
+ return { ...routing, "": this };
48
}
49
/** @desc Marks the route as deprecated (makes a copy of the endpoint) */
50
public abstract deprecated(): this;
0 commit comments