Skip to content

add pre defined meta for whole api and add unit test for this part#10

Open
ashrafatef wants to merge 1 commit intoaofleejay:masterfrom
ashrafatef:feature/add-pre-defined-meta
Open

add pre defined meta for whole api and add unit test for this part#10
ashrafatef wants to merge 1 commit intoaofleejay:masterfrom
ashrafatef:feature/add-pre-defined-meta

Conversation

@ashrafatef
Copy link
Copy Markdown

I added an option to provide a pre-defined meta for the whole API at the register middleware phase.

For Example

const meta = {
   version : "1.0",
   env :  "dev"
}
app.use(responseEnhancer(meta))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant