Every time I attempt to access /api/file, I am receiving a status code of 404.
Here is the relevant code snippet:
app.js :
...
app.use("/api", require("./routes/users"));
app.use("/api", require("./routes/file"));
app.use("/", require("./routes/login"));
...
routes/file :
...
route.get("/file/:filename", fileController.getFile);
...
module.exports = route;
This is what I see in Postman: