This commit is contained in:
zomars 2022-02-22 13:25:00 -07:00
parent 505c517237
commit 5c67a95028
13 changed files with 8 additions and 7 deletions

View File

@ -9,7 +9,7 @@ import { APPS as ConferencingApps } from "@lib/apps/conferencing/config";
import { APPS as PaymentApps } from "@lib/apps/payment/config";
const ALL_APPS_MAP = {
zoomvideo: appStore.zoomvideo.metadata,
...Object.values(appStore).map((app) => app.metadata),
...CalendarApps,
...ConferencingApps,
...PaymentApps,

View File

@ -20,7 +20,8 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
return res.status(404).json({ message: `API route not found` });
}
const [appName, apiEndpoint] = args;
const [_appName, apiEndpoint] = args;
const appName = _appName.split("_").join(""); // Transform `zoom_video` to `zoomvideo`;
try {
// TODO: Find a way to dynamically import these modules

View File

@ -2,7 +2,7 @@ import appStore from ".";
export function getAppRegistry() {
return [
appStore.zoomvideo.metadata,
...Object.values(appStore).map((app) => app.metadata),
{
name: "Cal Video",
slug: "cal-video",

View File

@ -7,9 +7,9 @@ export const metadata = {
description: _package.description,
installed: true,
category: "video",
imageSrc: "/cal-com-icon.svg",
imageSrc: "cal-com-icon.svg",
label: "Example App",
logo: "/cal-com-icon.svg",
logo: "cal-com-icon.svg",
publisher: "Cal.com",
rating: 5,
reviews: 69,

View File

@ -1,9 +1,9 @@
import * as example from "./_example";
import * as zoomvideo from "./zoomvideo";
import * as zoom_video from "./zoom_video";
const appStore = {
example,
zoomvideo,
zoom_video,
};
export default appStore;