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

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-1.0.0.pre.beta default_configuration/base_app/frontend/src/common/resources.js
xing-framework-1.0.0.pre.alpha default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.3.2 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.3.1 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.3.0 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.9 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.9.beta1 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.8 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.8.beta1 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.7 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.6 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.5 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.4 default_configuration/base_app/frontend/src/common/resources.js
xing-framework-0.2.3 default_configuration/base_app/frontend/src/common/resources.js