Skip to content

Mapping query params to local html file #4

@hongzhi0123

Description

@hongzhi0123

Would be possible to define following section to map a query param to a local file name?

"/search?name=:name?&filter=": {
"config": true,
"fetch": "./public/company
${req.params.name}.html",
"fetchCount": -1
}

The local file public/company_google.html should be then returned as respone of http://localhost:3000/search?name=google&filter=.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions