feat: private certificates/documents buckets with SeaweedFS support
Add Document CRUD, temp→bucket commit flow, SeaweedFS env aliases, and default temp bucket name to temp.
This commit is contained in:
@@ -19,6 +19,11 @@ exports.getAll = catchAsync(async (req, res, next) => {
|
||||
return listResponse(res, 200, data, meta);
|
||||
});
|
||||
|
||||
exports.getByUser = catchAsync(async (req, res) => {
|
||||
const data = await certificateService.getCertificatesByUser(req.params.userId);
|
||||
return successResponse(res, 200, 'User certificates retrieved successfully', data);
|
||||
});
|
||||
|
||||
exports.update = catchAsync(async (req, res, next) => {
|
||||
const certificate = await certificateService.updateCertificate(req.params.id, req.body);
|
||||
return successResponse(res, 200, 'Certificate updated successfully', certificate);
|
||||
|
||||
Reference in New Issue
Block a user