API Schema Improvements
@@ -12,7 +12,11 @@ Model.knex(db);
const boolFields = [
'is_deleted',
+ 'ssl_forced',
+ 'http2_support',
'enabled',
+ 'hsts_enabled',
+ 'hsts_subdomains',
];
class DeadHost extends Model {
@@ -8,8 +8,8 @@ const now = require('./now_helper');
Model.knex(db);
- 'enabled',
+ 'enabled',
'tcp_forwarding',
'udp_forwarding',
@@ -22,8 +22,7 @@
"enabled",
"locations",
"hsts_enabled",
- "hsts_subdomains",
- "certificate"
+ "hsts_subdomains"
],
"additionalProperties": false,
"properties": {
@@ -9,6 +9,15 @@
"url": "http://127.0.0.1:81/api"
}
+ "components": {
+ "securitySchemes": {
+ "bearerAuth": {
+ "type": "http",
+ "scheme": "bearer",
+ "bearerFormat": "JWT"
+ }
+ },
"paths": {
"/": {
"get": {