-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (17 loc) · 975 Bytes
/
Copy pathindex.js
File metadata and controls
21 lines (17 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const express = require("express");
const passport = require("passport");
const passportJWT = require("./config/passport");
const port = 3000;
require("./config/mongoose").connect();
const app = express();
app.use(express.urlencoded());
app.use(passport.initialize());
app.use("/", require("./routes"));
app.get("/", (req, res) => {
res.send(
'<div style = "font-family: cascadia code;display: flex; flex-direction:column; gap:2rem;align-items:center; justify-content:center; color:black; padding: 30px"><h1 style="font-size: 3rem"> RECOVERO REST API </h1><a href="https://documenter.getpostman.com/view/13538669/2s9YJW4QZK" style = "background: orangered; padding: 10px 20px; color:white; text-decoration:none; font-size:1rem; cursor:pointer; border-radius:10px" href="/api-docs"><p style="font-size: 2rem; margin:0">Documentation 📄</p></div>'
);
});
app.listen(port, () => {
console.log(`Successfully Listening on Port ${port}`);
});