Skip to content

Commit 3b4f9eb

Browse files
jebosalexellis
authored andcommitted
Add options verb to node12 template, so a function implementation in handler.js can implement custom response behavior
Signed-off-by: Jeremias Bosch <jeremias.bosch@basyskom.com>
1 parent b4d496b commit 3b4f9eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

template/node12/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ app.get('/*', middleware);
103103
app.patch('/*', middleware);
104104
app.put('/*', middleware);
105105
app.delete('/*', middleware);
106+
app.options('/*', middleware);
106107

107108
const port = process.env.http_port || 3000;
108109

0 commit comments

Comments
 (0)