@golemio/gardens 1.2.8-dev.1288386036 → 1.2.8-dev.1308407292

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.
@@ -6,7 +6,7 @@ const _1 = require(".");
6
6
  class GardensRouter extends routes_1.GeoJsonRouter {
7
7
  constructor() {
8
8
  super(new _1.GardensRepository());
9
- this.initRoutes();
9
+ this.initRoutes({ maxAge: 12 * 60 * 60, staleWhileRevalidate: 60 * 60 });
10
10
  }
11
11
  }
12
12
  exports.GardensRouter = GardensRouter;
@@ -1 +1 @@
1
- {"version":3,"file":"GardensRouter.js","sourceRoot":"","sources":["../../src/output-gateway/GardensRouter.ts"],"names":[],"mappings":";;;AACA,qEAAyE;AACzE,wBAAsC;AAEtC,MAAa,aAAc,SAAQ,sBAAa;IAC5C;QACI,KAAK,CAAC,IAAI,oBAAiB,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AALD,sCAKC;AAED,MAAM,aAAa,GAAW,IAAI,aAAa,EAAE,CAAC,MAAM,CAAC;AAEhD,sCAAa"}
1
+ {"version":3,"file":"GardensRouter.js","sourceRoot":"","sources":["../../src/output-gateway/GardensRouter.ts"],"names":[],"mappings":";;;AACA,qEAAyE;AACzE,wBAAsC;AAEtC,MAAa,aAAc,SAAQ,sBAAa;IAC5C;QACI,KAAK,CAAC,IAAI,oBAAiB,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,oBAAoB,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;CACJ;AALD,sCAKC;AAED,MAAM,aAAa,GAAW,IAAI,aAAa,EAAE,CAAC,MAAM,CAAC;AAEhD,sCAAa"}
package/docs/openapi.yaml CHANGED
@@ -77,7 +77,12 @@ paths:
77
77
  responses:
78
78
  "200":
79
79
  description: OK
80
- headers: {}
80
+ headers:
81
+ Cache-Control:
82
+ description: Cache control directive for caching proxies
83
+ schema:
84
+ type: string
85
+ example: public, s-maxage=43200, stale-while-revalidate=3600
81
86
  content:
82
87
  application/json; charset=utf-8:
83
88
  schema:
@@ -134,7 +139,12 @@ paths:
134
139
  responses:
135
140
  "200":
136
141
  description: OK
137
- headers: {}
142
+ headers:
143
+ Cache-Control:
144
+ description: Cache control directive for caching proxies
145
+ schema:
146
+ type: string
147
+ example: public, s-maxage=43200, stale-while-revalidate=3600
138
148
  content:
139
149
  application/json; charset=utf-8:
140
150
  schema:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/gardens",
3
- "version": "1.2.8-dev.1288386036",
3
+ "version": "1.2.8-dev.1308407292",
4
4
  "description": "Golemio Gardens Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",