Skip to content

Commit

Permalink
Create nexus_api_gateway.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 12, 2024
1 parent 9fc45ff commit 7f78a85
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nexus_banking_networks/nexus_web/src/nexus_api_gateway.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const express = require('express');
const app = express();

app.use(express.json());

app.post('/api/login', (req, res) => {
const { username, password } = req.body;
// Implement login logic
res.json({ message: 'Login successful' });
});

app.listen(3000, () => {
console.log('API Gateway listening on port 3000');
});

0 comments on commit 7f78a85

Please sign in to comment.