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: fix name appHandler

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