Minor Change (oops)

This commit is contained in:
TheEmeraldStarr 2021-08-08 14:55:47 -07:00
parent af2ca7e034
commit 6bd7e10c4d
31 changed files with 34771 additions and 1 deletions

View file

@ -0,0 +1,27 @@
const URLWrapper = require('./url');
const CookieRewriter = require('./cookie');
const CSSRewriter = require('./css');
const HTMLRewriter = require('./html');
const JSRewriter = require('./js');
const defaultConfig = {
prefix: '/service/',
codec: 'plain',
ws: true,
cookie: true,
title: 'Service',
};
class Rewrite {
constructor(config = defaultConfig) {
this.config = Object.assign(defaultConfig, config);
this.prefix = this.config.prefix;
this.url = new URLWrapper(this.config || {});
this.codec = this.url.codec;
this.cookies = new CookieRewriter(this);
this.css = new CSSRewriter(this);
this.js = new JSRewriter(this);
this.html = new HTMLRewriter(this);
};
};
module.exports = Rewrite;