mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Update some dependencies, fix nix
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
import { Request, Response, Router } from "express";
|
||||
import fetch from "node-fetch-commonjs";
|
||||
import { ProxyAgent } from "proxy-agent";
|
||||
import http from "http";
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -67,7 +68,7 @@ router.get(
|
||||
const response = await fetch(
|
||||
`https://g.tenor.com/v1/search?q=${q}&media_format=${media_format}&locale=${locale}&key=${apiKey}`,
|
||||
{
|
||||
agent,
|
||||
agent: agent as http.Agent,
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
},
|
||||
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
import { Request, Response, Router } from "express";
|
||||
import fetch from "node-fetch-commonjs";
|
||||
import { ProxyAgent } from "proxy-agent";
|
||||
import http from "http";
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -62,7 +63,7 @@ router.get(
|
||||
const response = await fetch(
|
||||
`https://g.tenor.com/v1/trending?media_format=${media_format}&locale=${locale}&key=${apiKey}`,
|
||||
{
|
||||
agent,
|
||||
agent: agent as http.Agent,
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
},
|
||||
|
||||
@@ -26,6 +26,7 @@ import {
|
||||
import { Request, Response, Router } from "express";
|
||||
import fetch from "node-fetch-commonjs";
|
||||
import { ProxyAgent } from "proxy-agent";
|
||||
import http from "http";
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -58,7 +59,7 @@ router.get(
|
||||
fetch(
|
||||
`https://g.tenor.com/v1/categories?locale=${locale}&key=${apiKey}`,
|
||||
{
|
||||
agent,
|
||||
agent: agent as http.Agent,
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
},
|
||||
@@ -66,7 +67,7 @@ router.get(
|
||||
fetch(
|
||||
`https://g.tenor.com/v1/trending?locale=${locale}&key=${apiKey}`,
|
||||
{
|
||||
agent,
|
||||
agent: agent as http.Agent,
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user