Skip to content

Commit 2aef1f3

Browse files
author
FalkWolsky
committed
Updating Node Service to respond at / root with a nice welcome message
1 parent 6e51e91 commit 2aef1f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

server/node-service/src/server.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ const prefix = "/node-service";
1414

1515
const router = express();
1616

17+
router.get("/", (req, res) => {
18+
res.status(200).json({
19+
code: 1,
20+
message: "Lowcoder Node Service is up and running",
21+
success: true
22+
});
23+
});
24+
1725
/** Static */
1826
router.use(prefix, express.static(path.join(__dirname, "static")));
1927

0 commit comments

Comments
 (0)