@golemio/city-districts 1.2.11-dev.1288383048 → 1.2.11-dev.1308407206

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 repositories_1 = require("./repositories");
6
6
  class CityDistrictsPostgresRouter extends output_gateway_1.GeoJsonRouter {
7
7
  constructor() {
8
8
  super(new repositories_1.CityDistrictsPostgresRepository());
9
- this.initRoutes();
9
+ this.initRoutes({ maxAge: 12 * 60 * 60, staleWhileRevalidate: 60 * 60 });
10
10
  }
11
11
  }
12
12
  exports.CityDistrictsPostgresRouter = CityDistrictsPostgresRouter;
@@ -1 +1 @@
1
- {"version":3,"file":"CityDistrictsPostgresRouter.js","sourceRoot":"","sources":["../../src/output-gateway/CityDistrictsPostgresRouter.ts"],"names":[],"mappings":";;;AACA,sEAAkE;AAClE,iDAAmE;AAEnE,MAAa,2BAA4B,SAAQ,8BAAa;IAC1D;QACI,KAAK,CAAC,IAAI,8CAA+B,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AALD,kEAKC;AAED,MAAM,2BAA2B,GAAW,IAAI,2BAA2B,EAAE,CAAC,MAAM,CAAC;AAE5E,kEAA2B"}
1
+ {"version":3,"file":"CityDistrictsPostgresRouter.js","sourceRoot":"","sources":["../../src/output-gateway/CityDistrictsPostgresRouter.ts"],"names":[],"mappings":";;;AACA,sEAAkE;AAClE,iDAAmE;AAEnE,MAAa,2BAA4B,SAAQ,8BAAa;IAC1D;QACI,KAAK,CAAC,IAAI,8CAA+B,EAAE,CAAC,CAAC;QAC7C,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,kEAKC;AAED,MAAM,2BAA2B,GAAW,IAAI,2BAA2B,EAAE,CAAC,MAAM,CAAC;AAE5E,kEAA2B"}
@@ -61,6 +61,12 @@ paths:
61
61
  responses:
62
62
  200:
63
63
  description: OK
64
+ headers:
65
+ Cache-Control:
66
+ description: Cache control directive for caching proxies
67
+ schema:
68
+ type: string
69
+ example: public, s-maxage=43200, stale-while-revalidate=3600
64
70
  content:
65
71
  application/json; charset=utf-8:
66
72
  schema:
@@ -96,6 +102,12 @@ paths:
96
102
  responses:
97
103
  200:
98
104
  description: OK
105
+ headers:
106
+ Cache-Control:
107
+ description: Cache control directive for caching proxies
108
+ schema:
109
+ type: string
110
+ example: public, s-maxage=43200, stale-while-revalidate=3600
99
111
  content:
100
112
  application/json; charset=utf-8:
101
113
  schema:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/city-districts",
3
- "version": "1.2.11-dev.1288383048",
3
+ "version": "1.2.11-dev.1308407206",
4
4
  "description": "Golemio City Districts Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",