feat(site): add document support
This commit is contained in:
10
dist/documents/documents.controller.js
vendored
10
dist/documents/documents.controller.js
vendored
@@ -36,6 +36,9 @@ let DocumentsController = class DocumentsController {
|
||||
findByPiece(pieceId) {
|
||||
return this.documentsService.findByPiece(pieceId);
|
||||
}
|
||||
findBySite(siteId) {
|
||||
return this.documentsService.findBySite(siteId);
|
||||
}
|
||||
findOne(id) {
|
||||
return this.documentsService.findOne(id);
|
||||
}
|
||||
@@ -81,6 +84,13 @@ __decorate([
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.prototype, "findByPiece", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)('site/:siteId'),
|
||||
__param(0, (0, common_1.Param)('siteId')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], DocumentsController.prototype, "findBySite", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)(':id'),
|
||||
__param(0, (0, common_1.Param)('id')),
|
||||
|
||||
Reference in New Issue
Block a user