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', debug : true });
logger.setLogDirectory('/var/demo_plugin/logs');
let webServer = new WebServer({ logger, pluginName : 'Demo Plugin', port : 1710, language : 'us' }, { languageDirectory : '/var/demo_plugin/language', filesystem : true });
this.WebServer.addPage('/serverside/demo', (request, response, urlParams, postJSON) => {
response.write('Hello World! :D');
response.end();
});
Troubleshooting
Report
us your Issues
Join
our Discord Server