@seip/blue-bird 0.9.9 → 1.0.0

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.
package/core/app.js CHANGED
@@ -160,6 +160,7 @@ class App {
160
160
  if (this.static.path || props.debug)
161
161
  this.app.use(
162
162
  express.static(path.join(__dirname, this.static.path || "frontend"), {
163
+ extensions: ["html"],
163
164
  ...this.static.options,
164
165
  setHeaders: (res) => {
165
166
  res.setHeader("X-Powered-By", "Blue Bird");
package/core/config.js CHANGED
@@ -42,8 +42,10 @@ class Config {
42
42
  port: Number.isNaN(portRaw) ? 3000 : portRaw,
43
43
  jwtSecret: process.env.JWT_SECRET,
44
44
  static: {
45
- path: process.env.STATIC_PATH || "frontend/public",
46
- options: {},
45
+ path: process.env.STATIC_PATH || "frontend",
46
+ options: {
47
+ extensions: ["html"],
48
+ },
47
49
  },
48
50
  };
49
51
  return _cachedProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seip/blue-bird",
3
- "version": "0.9.9",
3
+ "version": "1.0.0",
4
4
  "description": "Express opinionated API framework with built-in JWT auth, validation, and caching",
5
5
  "type": "module",
6
6
  "types": "core/index.d.ts",