blob: b4f4282bbead435166b56c0f530c92022d47f247 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require("dotenv").config();
const express = require("express");
const motto = require("./motto");
const auth = require("./auth");
const quotes = require("./quotes");
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.use("/auth", auth);
app.use("/quotes", quotes);
app.listen(5005, () => console.log("Server started on http://localhost:5005"));
|