Skip to content

Commit cb3be9f

Browse files
committed
chore: add a comment
1 parent 9dfae6b commit cb3be9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli.js

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const createEndpoints = async (destDir, lang, config) => {
9696
"extractParams": (query) => query.match(/(?<=:)[pb]\.\w+/g) || [],
9797

9898
// [ "p.page", "b.num" ] => '{ "page" : req.params.page, "num": req.body.num }'
99+
// (used only with Express)
99100
"formatParams": (params) => {
100101
return params.length > 0
101102
? '{ ' + Array.from(new Set(params), p => `"${p.substring(2)}": ${placeholdersMap[p.substring(0, 1)]}.${p.substring(2)}`).join(', ') + ' }'

0 commit comments

Comments
 (0)