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.use(
|
||||
app.get(
|
||||
"/static",
|
||||
express.static(path.join(__dirname, "../flags"), {
|
||||
immutable: true,
|
||||
|
||||
Reference in New Issue
Block a user