Skip to content

Commit 952e3da

Browse files
committed
♻️ Remove /assets for serving static files
1 parent 178488b commit 952e3da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const routes = require("./routes");
55
const PORT = process.env.PORT;
66
const app = express();
77

8-
app.use("/assets", express.static(__dirname + "/public"));
8+
app.use(express.static(__dirname + "/public"));
9+
app.use("/create", routes);
910
app.use("/", routes);
1011

1112
app.set("views", "./views");

0 commit comments

Comments
 (0)