fix avatar serving
This commit is contained in:
parent
d4d34d8eb0
commit
f4d499b5b8
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
import express from "express";
|
||||
import { attachmentUploadDirectory } from "../serverconfig";
|
||||
import { attachmentUploadDirectory, avatarUploadDirectory } from "../serverconfig";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use("/avatar", express.static("uploads/avatar"));
|
||||
router.use("/avatar", express.static(avatarUploadDirectory));
|
||||
|
||||
router.get("/attachment/:id", (req, res) => {
|
||||
res.download(req.params.id, req.params.id, {
|
||||
|
|
Loading…
Reference in a new issue