blob: 1130de1d59275a1c3d5c251df36fe0f2385a31b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require("dotenv").config();
const express = require("express");
const motto = require("./motto");
const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.get("/", (req, res) => res.redirect("/motto"));
app.use("/motto", motto);
app.listen(5005, () => console.log("Server started on http://localhost:5005"));
|