Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 35470aa

Browse files
committed
Fixes catch all path
1 parent bffa91a commit 35470aa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pdftemplater-webservice-docker",
33
"description": "Create pdf document from template",
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"license": "MIT",
66
"private": true,
77
"author": {
@@ -29,6 +29,7 @@
2929
},
3030
"main": "index.js",
3131
"scripts": {
32+
"start": "node standalone.js",
3233
"test": "standard && nsp check && tap --reporter=spec test/**/*.js",
3334
"coverage": "tap test/**/*.js --coverage",
3435
"coveralls": "tap --cov --coverage-report=lcov test/**/*.js && cat coverage/lcov.info | coveralls",

routes/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ var handlers = require('../handlers')
55
var routes = [
66
{
77
method: 'POST',
8-
path: '*',
8+
path: '/{path*}',
9+
handler: handlers.handleUpload,
910
config: {
1011
payload: {
1112
output: 'stream',
1213
parse: true,
1314
allow: 'multipart/form-data'
14-
},
15-
handler: handlers.handleUpload
15+
}
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)