Use app.get rather than app.use

This commit is contained in:
Federico Kereki
2018-05-05 00:30:35 -03:00
parent 7881f96fee
commit 003bd8f64f
+1 -1
View File
@@ -7,7 +7,7 @@ const app = express();
app.get("/", (req, res) => res.send("Server alive, with Express!")); app.get("/", (req, res) => res.send("Server alive, with Express!"));
app.use( app.get(
"/static", "/static",
express.static(path.join(__dirname, "../flags"), { express.static(path.join(__dirname, "../flags"), {
immutable: true, immutable: true,