A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
connections as param
Christian Feid4830824d969
diff --git a/index.js b/index.jsindex d26fbda..74607f9 100644--- a/index.js+++ b/index.js@@ -6,9 +6,8 @@ import { createServer } from './lib/server.js'fs.mkdirSync('./data', { recursive: true })fs.mkdirSync('./data/videos', { recursive: true })-async function main ({port = 3000} = {}) {+async function main ({port = 3000, connections = []} = {}) {const repo = new Repository()- const connections = []fs.readdirSync('./data/videos').forEach(file => {if (!file.endsWith('.mp4')) return