summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/app.js b/app.js
index 969492f..3998b0b 100644
--- a/app.js
+++ b/app.js
@@ -21,7 +21,9 @@ const mime = {
avif: 'image/avif',
ico: 'image/ico',
svg: 'image/svg+xml',
- js: 'application/javascript'
+ js: 'application/javascript',
+ mp4: 'video/mp4',
+ webm: 'video/webm'
}
require('dotenv').config()
@@ -55,6 +57,10 @@ class App {
const data = this.readfile.GetFile(req.path)
data.mime.then(output => this.#FileOpen({data: data, mime: output, res: res}))
})
+ app.get('/vid/*', this.#Logger, (req, res) => {
+ const data = this.readfile.GetFile(req.path)
+ data.mime.then(output => this.#FileOpen({data: data, mime: output, res: res}))
+ })
app.route('*')
.get(this.#ValidateCookie, this.#Logger, (req, res) => {