Created
March 1, 2019 21:54
-
-
Save JozefFlakus/03efaf545d38f2fd2d7b0f649e8e4c3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { bodyParser$, jsonParser } from '@marblejs/middleware-body'; | |
bodyParser$({ | |
parser: jsonParser, | |
type: ['*/json', 'application/vnd.api+json'], | |
}) | |
// or | |
import { bodyParser$, urlEncodedParser } from '@marblejs/middleware-body'; | |
bodyParser$({ | |
parser: urlEncodedParser, | |
type: ['*/x-www-form-urlencoded'], | |
}); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment