SynTex WebServer
A webserver system with filesystem and language support.
Use This In Your Code
let WebServer = require('syntex-webserver'),
Logger = require('syntex-logger');
let logger = new Logger({ pluginName : 'Demo Plugin' }, { language : 'us', levels : { debug : false }, time : true });
logger.setLogDirectory('/var/demo_plugin/logs/');
let webServer = new WebServer({ logger, pluginName : 'Demo Plugin', port : 1710, language : 'us' }, { filesystem : true, languageDirectory : '/var/demo_plugin/language/', path : '/var/demo_plugin/' });
this.WebServer.addPage('/serverside/demo', (request, response, urlParams, postJSON) => {
response.end('Hello World! :D');
});
Troubleshooting
Report
us your Issues
Join
our Discord Server