# MergeParams Decorator express
Module | import { MergeParams } from "@tsed/common" |
---|---|
Source | /packages/common/src/platform-express/decorators/mergeParams.ts |
# Overview
function MergeParams(mergeParams?: boolean): Function;
# Description
Specify the behavior of the router controller.
@Controller("/")
@MergeParams(true)
class MyCtrl {
}
1
2
3
4
5
2
3
4
5
Property | Description | Default |
---|---|---|
CaseSensitive | Enable case sensitivity. | Disabled by default, treating “/Foo” and “/foo” as the same. |
MergeParams | Preserve the req.params values from the parent router. If the parent and the child have conflicting param names, the child’s value take precedence. | false |
Strict | Enable strict routing. | Disabled by default, “/foo” and “/foo/” are treated the same by the router. |
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing