From d82bc75ea9bf15b842d55df6d79e070d96efbafb Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Sat, 25 Sep 2021 12:11:27 +0200 Subject: [PATCH] Basic boilerplate added. --- index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..6aaa3ec --- /dev/null +++ b/index.js @@ -0,0 +1,15 @@ +import express from 'express' + +const Server = express() + +Server.get('/', (req, res) => + res.status(200) + .json( + { + status: "OK!", + message: "The API is up and running! The current version is: 0.0.1" + } + ) +) + +Server.listen(12345, () => console.log("Server has started!")) \ No newline at end of file