Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Code Simplification] Remove use of body-parser for native express json (#124)

authored by

Juan Mrad and committed by
GitHub
d1b11e3b d8e0a45f

+1 -4
+1 -2
server/api.ts
··· 19 19 ApolloServerPluginLandingPageGraphQLPlayground, 20 20 } from 'apollo-server-core'; 21 21 import { ApolloServer } from 'apollo-server-express'; 22 - import bodyParser from 'body-parser'; 23 22 import connectPgSimple from 'connect-pg-simple'; 24 23 import cors from 'cors'; 25 24 import express, { type ErrorRequestHandler } from 'express'; ··· 240 239 241 240 app.post( 242 241 `/saml/login/:orgId/callback`, 243 - bodyParser.urlencoded({ extended: false }), 242 + express.urlencoded({ extended: false }), 244 243 passport.authenticate('saml', { 245 244 failureRedirect: '/', 246 245 failureFlash: true,
-1
server/package-lock.json
··· 51 51 "apollo-server-express": "^3.10.3", 52 52 "avsc": "^5.7.7", 53 53 "bcryptjs": "^2.4.3", 54 - "body-parser": "^1.20.2", 55 54 "bullmq": "^5.0.0", 56 55 "cassandra-driver": "^4.8.0", 57 56 "cls-hooked": "^4.2.2",
-1
server/package.json
··· 65 65 "apollo-server-express": "^3.10.3", 66 66 "avsc": "^5.7.7", 67 67 "bcryptjs": "^2.4.3", 68 - "body-parser": "^1.20.2", 69 68 "bullmq": "^5.0.0", 70 69 "cassandra-driver": "^4.8.0", 71 70 "cls-hooked": "^4.2.2",