From 9f4c14d1aeada7b90cac49663514288410e6b896 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Wed, 7 Aug 2024 22:11:15 +0700 Subject: [PATCH] Create app.js --- projects/PiWalletBot/server/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 projects/PiWalletBot/server/app.js diff --git a/projects/PiWalletBot/server/app.js b/projects/PiWalletBot/server/app.js new file mode 100644 index 000000000..76e12c548 --- /dev/null +++ b/projects/PiWalletBot/server/app.js @@ -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'); +});