search
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
Concepts
chevron_right
Types
chevron_right
Advanced
chevron_right
chevron_right
chevron_right
param
is class member of Guard and Controller. It is used to extract route data for placeholder based routing.
e.g - consider the route - "abc.com/{value}/hi" . Here value is a placeholder and this can be extracted using param.
export class FileController extends Controller {
@Route("/scripts/{file}.js")
@Worker()
async getScripts() {
const fileName = this.param.file;
}
}
For more info about routing, please check the route doc.

Created with by Ujjwal Gupta
Help fortjs Grow
fortjs is an open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
Need Help
Dont worry, if something is not working for you. The whole community is here for you.
Community
Be a part of fortjs community and help other people in learning fortjs, using it in a best way and making fortjs better.