ADD: API_URL to env

ADD: DocumentUrls and mainImageUrls field in belonging model
FIX: Indexing bugs for belonging
ADD: getImage endpoint to get private images
ADD: PrivateUrl field as virtual
FIX: Minor bug in bucketDeleteFile service
ADD: Word type to multer file checker
This commit is contained in:
2025-04-27 16:17:17 +03:30
parent d7d2d98b6d
commit 4fc323cd16
8 changed files with 100 additions and 29 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
const multer = require('multer')
const AppError = require('../globalErrorHandler/AppError')
const types = ['png', 'jpg', 'jpeg', 'webp', 'pdf', 'doc', 'docx', 'xlsx', 'dwg']
const types = ['png', 'jpg', 'jpeg', 'webp', 'pdf', 'doc', 'docx', 'xlsx', 'dwg', 'vnd.openxmlformats-officedocument.wordprocessingml.document']
const formatsText = types.join(' - ')
const fileFilter = (req, file, cb) => {