Updates
This commit is contained in:
@@ -4,9 +4,14 @@ import { DSQL_DATASQUIREL_USER_MEDIA } from "../../types/dsql";
|
||||
import path from "path";
|
||||
import grabAPIBasePath from "../../utils/grab-api-base-path";
|
||||
|
||||
export default async function apiMediaDELETE(params: {
|
||||
type Params = {
|
||||
mediaID?: string | number;
|
||||
}): Promise<
|
||||
apiKey?: string;
|
||||
};
|
||||
|
||||
export default async function apiMediaDELETE(
|
||||
params: Params
|
||||
): Promise<
|
||||
APIResponseObject<
|
||||
DSQL_DATASQUIREL_USER_MEDIA | DSQL_DATASQUIREL_USER_MEDIA[]
|
||||
>
|
||||
@@ -24,6 +29,7 @@ export default async function apiMediaDELETE(params: {
|
||||
const DELETE_MEDIA_RES = await queryDSQLAPI({
|
||||
method: "DELETE",
|
||||
path: finalPath,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
|
||||
return DELETE_MEDIA_RES as APIResponseObject<
|
||||
|
||||
@@ -25,6 +25,7 @@ export default async function apiMediaGET(
|
||||
method: "GET",
|
||||
path: finalPath,
|
||||
query: params,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
|
||||
return GET_MEDIA_RES as APIResponseObject<
|
||||
|
||||
@@ -16,6 +16,7 @@ export default async function apiMediaPOST(
|
||||
method: "POST",
|
||||
path: basePath,
|
||||
body: params,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
|
||||
return POST_MEDIA_RES as APIResponseObject<
|
||||
|
||||
Reference in New Issue
Block a user