diff --git a/src/cores/app.ts b/src/cores/app.ts index 2c172313dcdb46c78f43f0e0148f6af5f65bcfca..9c3aeec04297200fed6a907f525bcd632b2b1fd8 100644 --- a/src/cores/app.ts +++ b/src/cores/app.ts @@ -3,6 +3,7 @@ import cookieParser from "cookie-parser"; import cors from "cors"; import dotenv from "dotenv"; import apiRouter from "../routers/api"; +import path from "path"; dotenv.config(); @@ -35,6 +36,9 @@ app.use(express.json()); app.use(cookieParser()); app.use(apiRouter); +// app.use(express.static(path.join(__dirname, '..', 'storage'))); +app.use(express.static('storage')); + app.listen(port, () => { return console.log(`Express is listening at port ${port}`); });