Skip to content

Commit 71c27b9

Browse files
author
Lukas Siemon
committed
fix: endpoints now defined on api instance level
1 parent 0fb50dd commit 71c27b9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const param = require("./param");
55
const response = require("./response");
66
const swagger = require("./swagger");
77

8-
const endpoints = {};
9-
108
const parse = (request, params, event) => {
119
const expectedRequestMethod = request.split(" ")[0];
1210
const receivedRequestMethod = get(event, 'httpMethod');
@@ -49,6 +47,7 @@ const generateResponse = (err, resp, callback, rb) => {
4947
};
5048

5149
module.exports = (options = {}) => {
50+
const endpoints = {};
5251
const rollbar = Rollbar(get(options, 'rollbar', {}));
5352
const limiter = Limiter(get(options, 'limiter', {}));
5453

0 commit comments

Comments
 (0)