Browse Source

server: remove unused query parsing

master
Milan Pässler 1 year ago
parent
commit
bcf24fb00d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/index.js

+ 1
- 1
server/index.js View File

@@ -46,7 +46,7 @@ const getReferences = async (hash) => {
http.createServer(async (req, stream) => {
stream.setHeader("Access-Control-Allow-Origin", "*");

const { pathname, query } = url.parse(req.url, true) // true to get query as object
const { pathname } = url.parse(req.url);
let split = pathname.split("/");
let name = split[split.length-1];



Loading…
Cancel
Save