X-Git-Url: https://git.kengrimes.com/?p=henge%2Fkiak.git;a=blobdiff_plain;f=strapp.js;fp=strapp.js;h=0000000000000000000000000000000000000000;hp=dc9547991ec04b6472bfca1a403871f41ddbbde6;hb=552b28b4fc1ed42e3362c1826acf94c349425b1c;hpb=a7e6c36b91dd1a36021f7459200436b3cb31d756 diff --git a/strapp.js b/strapp.js deleted file mode 100644 index dc95479..0000000 --- a/strapp.js +++ /dev/null @@ -1,27 +0,0 @@ -/** -* @file Node entry and main driver -* @author Jordan Lavatai, Ken Grimes -* @version 0.0.1 -* @license AGPL-3.0 -* @copyright loljk 2017 -* @summ ary HTTP(S) Router that uses the first directory in the requested URL -* as the route name -*/ -const opts = require('./opts.js') -const router = require('./router.js') - -Object.keys(opts['bindings']).forEach((key) => { - router.createBind(key, opts['bindings'][key]) -}) - -router.startHttpServer({ - port: opts['port'], - skelFile: './skel.html', - clientJS: opts['client-js'], - hostJS: opts['host-js'], - httpdRoot: opts['file-dir'], - tls: { - certFile: opts['ca-cert'], - keyFile: opts['ca-key'] - } -})