diff --git a/api-prox/index.ts b/api-prox/index.ts
index 98856c1..7bcd03c 100644
--- a/api-prox/index.ts
+++ b/api-prox/index.ts
@@ -72,14 +72,6 @@ async function loadHooks() {
}
}
-app.get("/", async (req, res) => {
- res.status(200);
- res.set({
- "Content-Type": "text/html; charset=utf-8",
- });
- res.send("");
-});
-
app.get("/player", async (req, res) => {
let url = req.query.url || null;
@@ -277,7 +269,6 @@ app.post("/*path", async (req, res) => {
"application/json",
"application/x-www-form-urlencoded",
"multipart/form-data",
- "x-unknown/unknown"
];
const isSupported = supportedContentTypes.includes(
@@ -296,7 +287,7 @@ app.post("/*path", async (req, res) => {
let apiResponse: null | Response = null;
const apiHeaders: ANIXART_HEADERST = {
"User-Agent": ANIXART_HEADERS["User-Agent"],
- "Content-Type": req.headers["content-type"] || "application/json",
+ "Content-Type": req.headers["content-type"] || "application/json"
};
if (
@@ -323,7 +314,7 @@ app.post("/*path", async (req, res) => {
body: new URLSearchParams(req.body),
});
break;
- default:
+ case "application/json":
apiResponse = await fetch(url.toString(), {
method: "POST",
headers: apiHeaders,
diff --git a/app/api/config.ts b/app/api/config.ts
index 316d19e..9f3a2ba 100644
--- a/app/api/config.ts
+++ b/app/api/config.ts
@@ -58,7 +58,6 @@ export const ENDPOINTS = {
profileFavorites: `${API_PREFIX}/search/favorites`,
profiles: `${API_PREFIX}/search/profiles`,
releases: `${API_PREFIX}/search/releases`,
- collections: `${API_PREFIX}/search/collections`,
},
statistic: {
addHistory: `${API_PREFIX}/history/add`,
diff --git a/app/components/CollectionLink/CollectionLink.tsx b/app/components/CollectionLink/CollectionLink.tsx
index aee2010..61371e1 100644
--- a/app/components/CollectionLink/CollectionLink.tsx
+++ b/app/components/CollectionLink/CollectionLink.tsx
@@ -28,12 +28,10 @@ export const CollectionLink = (props: any) => {
icon_name="material-symbols--favorite"
name_2={props.favorites_count}
/>
- {props.comment_count && (
-