Skip to content

Commit

Permalink
Add missing middleware to proxy route
Browse files Browse the repository at this point in the history
  • Loading branch information
srosset81 committed Mar 19, 2024
1 parent 9b1a0cf commit a9a0e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/packages/signature/services/proxy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const urlJoin = require('url-join');
const { MoleculerError } = require('moleculer').Errors;
const { parseFile, saveDatasetMeta } = require('@semapps/middlewares');
const { parseHeader, parseFile, saveDatasetMeta } = require('@semapps/middlewares');
const fetch = require('node-fetch');
const { Errors: E } = require('moleculer-web');

Expand All @@ -25,7 +25,7 @@ const ProxyService = {
authorization: true,
authentication: false,
aliases: {
'POST /': [parseFile, saveDatasetMeta, 'signature.proxy.api_query'] // parseFile handles multipart/form-data
'POST /': [parseHeader, parseFile, saveDatasetMeta, 'signature.proxy.api_query'] // parseFile handles multipart/form-data
}
};

Expand Down

0 comments on commit a9a0e1b

Please sign in to comment.