DEV Community

loading...

Discussion on: NodeJS: How To Add Routes To Our Express Server

Collapse
nomangul profile image
Noman Gul

const express = require("express");
const app = express();

app.get("/dashboard", (_, res) => 
  res.send("This is your cool dashboard"));

app.listen(4000, () => console.log("server running..."))


Forem Open with the Forem app