Removed some logs
This commit is contained in:
@@ -20,10 +20,8 @@ export function getServer() {
|
|||||||
if (req.url) {
|
if (req.url) {
|
||||||
// parse URL
|
// parse URL
|
||||||
const parsedUrl = url.parse(req.url, true)
|
const parsedUrl = url.parse(req.url, true)
|
||||||
console.log(parsedUrl)
|
|
||||||
if (parsedUrl.pathname === '/search') {
|
if (parsedUrl.pathname === '/search') {
|
||||||
const q = parsedUrl.query.q as string
|
const q = parsedUrl.query.q as string
|
||||||
console.log(q)
|
|
||||||
const results = await api.search(q)
|
const results = await api.search(q)
|
||||||
res.statusCode = 200
|
res.statusCode = 200
|
||||||
res.setHeader('Content-Type', 'application/json')
|
res.setHeader('Content-Type', 'application/json')
|
||||||
|
|||||||
Reference in New Issue
Block a user