annotations

This commit is contained in:
2024-11-27 12:46:03 +02:00
parent 54b8941f3c
commit ad4eef17f5
12 changed files with 514 additions and 36 deletions
+11
View File
@@ -8,9 +8,16 @@ import cookieParser from 'cookie-parser';
import helmet from 'helmet';
import { v4 as uuidv4 } from 'uuid';
/**
* The Web Server class, manages all request from the web pllatform, manages the APIs
*/
class WebServer {
name = 'webServer';
/**
* Initializes the web server plugin
* @param {App} app The application instance
*/
async init(app) {
const xapp = express();
this.xapp = xapp;
@@ -61,6 +68,10 @@ class WebServer {
app.config.am.helmet && xapp.use(helmet(app.config.am.helmet));
}
/**
* Starts the web server plugin
* @param {App} app The application instance
*/
async start(app) {
let indexFile = app.root + '/index.html';