We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a somewhat complex matcher like this:
const getBook = ({ url }, match) => { const path = '/books/:bookId'; if (match({ path, method: 'GET' })) { const { bookId } = getParams(url, path); const book = books.find((book) => book.bookId === bookId); if (!book) { return { status: 404 }; } return { status: 200, body: book }; } return null; };
The getParams function that is needed is not exposed by parrot, even though it has an implementation.
getParams
It would be convenient if that was available for consumers to use.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given a somewhat complex matcher like this:
The
getParams
function that is needed is not exposed by parrot, even though it has an implementation.It would be convenient if that was available for consumers to use.
The text was updated successfully, but these errors were encountered: