refactor: description back routes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-04-08 12:25:06 +02:00
parent ea4266ef8c
commit 90b079a0ac
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ const path = require('path');
module.exports = Self => {
Self.remoteMethodCtx('deleteOldFiles', {
description: 'Upload and attach a document',
description: 'Delete files that are 6 months old from "./storage/claim"',
accessType: 'WRITE',
returns: {
type: 'object',

View File

@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.remoteMethodCtx('downloadFile', {
description: 'Get the user image',
description: 'Get the claim file',
accessType: 'READ',
accepts: [
{

View File

@ -4,7 +4,7 @@ const path = require('path');
module.exports = Self => {
Self.remoteMethodCtx('uploadFile', {
description: 'Upload and attach a document',
description: 'Upload and attach a file',
accessType: 'WRITE',
accepts: [{
arg: 'id',