Use app.get rather than app.use
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user