feat: add pinterest support

This commit is contained in:
Snazzah
2023-05-24 12:32:41 -05:00
parent fa4e418e36
commit 40291c4d24
7 changed files with 85 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import vimeo from "./services/vimeo.js";
import soundcloud from "./services/soundcloud.js";
import instagram from "./services/instagram.js";
import vine from "./services/vine.js";
import pinterest from "./services/pinterest.js";
export default async function (host, patternMatch, url, lang, obj) {
try {
@@ -110,6 +111,9 @@ export default async function (host, patternMatch, url, lang, obj) {
case "vine":
r = await vine({ id: patternMatch["id"] });
break;
case "pinterest":
r = await pinterest({ id: patternMatch["id"] });
break;
default:
return apiJSON(0, { t: errorUnsupported(lang) });
}