Skip to content

Commit

Permalink
Create app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent ae4f622 commit 9f4c14d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions projects/PiWalletBot/server/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import express from 'express';
import apiRouter from './routes/api';

const app = express();

app.use(express.json());
app.use('/api', apiRouter);

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

0 comments on commit 9f4c14d

Please sign in to comment.