@aws-amplify/amplify-category-api
Version:
Amplify CLI API Category Plugin
11 lines (7 loc) • 525 B
text/typescript
import * as path from 'path';
export const serviceMetadataFor = async (service: string) =>
(await import(path.join('..', '..', 'supported-services'))).supportedServices[service];
export const datasourceMetadataFor = async (datasource: string) =>
(await import(path.join('..', '..', 'supported-datasources'))).supportedDataSources[datasource];
export const getServiceWalkthrough = async (walkthroughFilename: string) =>
(await import(path.join('..', 'service-walkthroughs', walkthroughFilename))).serviceWalkthrough;