Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

chore: no log appHandler

Christian Feid39e0d1151de
diff --git a/server/router/app.js b/server/router/app.js
index c375339..d2abd16 100644
--- a/server/router/app.js
+++ b/server/router/app.js
@@ -3,7 +3,7 @@ import { URL } from 'url'
export default function apiHandler (req, res) {
const url = new URL(req.url, `http://${req.headers.host}`)
- console.log(req.method, url.pathname)
+ // console.log(req.method, url.pathname)
if (url.pathname === '/main.css') { return fileHandler('client/main.css', 'text/css')(req, res) }
if (url.pathname === '/normalize.css') { return fileHandler('client/normalize.css', 'text/css')(req, res) }
if (url.pathname === '/main.js') { return fileHandler('client/main.js', 'application/javascript')(req, res) }