diff options
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -32,6 +32,7 @@ const assetDir = [ 'vid' ] require('dotenv').config() +const rss = require('./source/rss')({baseUrl: process.env.baseUrl}) // Handles the routes class App { @@ -77,12 +78,18 @@ class App { this.data = this.readfile.GetRobots() this.data.mime.then(output => this.#FileOpen({data: this.data, mime: output, res: res})) break + case 'rss': + rss.GetFeed({ + title: process.env.rssTitle, + description: process.env.rssDescription, + author: process.env.rssAuthor + }).then(output => res.send(output)) + break default: if (this.path.string.endsWith('/') && this.path.string.length > 1) this.path.string = this.path.string.substring(0, this.path.string.length - 1) if (output.has(this.path.string)) { try { output.get(this.path.string).then(output => { - console.log(output.meta) res.send(this.readfile.GetMain(output.meta)) }) } catch { |
