Sha256: f8c6509bf46ec5b549fcc45f56735ab28c8da0060a49ba04857a6ff1a3146d28
Contents?: true
Size: 713 Bytes
Versions: 16
Compression:
Stored size: 713 Bytes
Contents
import RL from "relayer"; import {Module, Config, applyAnnotation} from "a1atscript"; import {backendUrl} from 'config'; // import other resources from src/common/resources here class Resources extends RL.Resource { } RL.Describe(Resources, (desc) => { // put top level links to resources here }); // sets up default API as 'resources' service function setupResources(relayerProvider) { relayerProvider.createApi("resources", Resources, backendUrl+"resources") } // this is a syntax for applying an annotation without an ES7 Decorator applyAnnotation(setupResources, Config, "relayerProvider"); var resourcesModule = new Module('xing.resources', [setupResources, RL]); export default resourcesModule;
Version data entries
16 entries across 16 versions & 1 rubygems