({ })
| 45 | } |
| 46 | |
| 47 | async get({ }) { |
| 48 | if (!this.udoc._files?.length) this.checkPriv(PRIV.PRIV_CREATE_FILE); |
| 49 | this.response.body = { |
| 50 | files: sortFiles(this.udoc._files), |
| 51 | urlForFile: (filename: string) => this.url('fs_download', { uid: this.udoc._id, filename }), |
| 52 | }; |
| 53 | this.response.pjax = 'partials/files.html'; |
| 54 | this.response.template = 'home_files.html'; |
| 55 | } |
| 56 | |
| 57 | @post('filename', Types.Filename) |
| 58 | async postUploadFile({ }, filename: string) { |
no test coverage detected