@hellocoop/express 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/auth.js +2 -2
  2. package/package.json +1 -1
package/dist/auth.js CHANGED
@@ -68,12 +68,12 @@ const auth = function (config) {
68
68
  next();
69
69
  });
70
70
  r.use((0, express_1.text)()); // for parsing text/plain
71
- r.post('/api/hellocoop', async (req, res) => {
71
+ r.post(router_1.configuration.apiRoute, async (req, res) => {
72
72
  const helloReq = convertToHelloRequest(req);
73
73
  const helloRes = convertToHelloResponse(res);
74
74
  await (0, router_1.router)(helloReq, helloRes);
75
75
  });
76
- r.get('/api/hellocoop', async (req, res) => {
76
+ r.get(router_1.configuration.apiRoute, async (req, res) => {
77
77
  const helloReq = convertToHelloRequest(req);
78
78
  const helloRes = convertToHelloResponse(res);
79
79
  await (0, router_1.router)(helloReq, helloRes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/express",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Express SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",