WIP WIP
This commit is contained in:
parent
505c517237
commit
5c67a95028
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user