Skip to content

Commit

Permalink
fix bug in post requets and put request
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyadriell committed Jul 8, 2023
1 parent 6ebe840 commit 2425073
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions srcs/api-gateway/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ dotenv.config();
const app = express();
const port = process.env.API_GATEWAY_PORT || 3000;

app.use('/api/movies', proxyMiddleware(process.env.MOVIES_API_URL));
app.use(bodyParser.json());
app.use('/api', proxyMiddleware(process.env.MOVIES_API_URL));

routes(app);
connectQueue(process.env.RABBITMQ_URL);
app.listen(port, () => {
Expand Down

0 comments on commit 2425073

Please sign in to comment.