Implemented attachment file download function

This commit is contained in:
Takeshi Kimata
2024-03-20 16:19:01 +09:00
parent 8a5ae80351
commit fdda581fb0
5 changed files with 82 additions and 2 deletions

View File

@@ -64,8 +64,10 @@ app.use("/steps", stepsDeleteRoute);
// "/attachments"
const attachmentsNewRoute = require("./routes/attachments/new")(sequelize);
const attachmentsDeleteRoute = require("./routes/attachments/delete")(sequelize);
const attachmentsDownloadRoute = require("./routes/attachments/download")(sequelize);
app.use("/attachments", attachmentsNewRoute);
app.use("/attachments", attachmentsDeleteRoute);
app.use("/attachments", attachmentsDownloadRoute);
// "/runs"
const runsIndexRoute = require("./routes/runs/index")(sequelize);