server.js 368 Bytes
const express = require("express");
const dotenv = require("dotenv");
const app = express();

dotenv.config();

app.use(express.json());

const watsonRoute = require("./routes/api/server_watson");
app.use("/api/watson", watsonRoute);

const port = process.env.PORT || 5000;
app.listen(port, () => {
    console.log(`Server is listening http://localhost:${port}`);
});