# MergeParams Decorator

Module
import { MergeParams } from "@tsed/common"
Source/packages/common/src/mvc/decorators/class/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
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.