Skip to content

create class which handles everything #12

Description

@ORESoftware
const TypeCreator = require('@oresoftware/tc');
const tc = new TypeCreator();

const v = tc.registerSymbols({
     foo: {value: Symbol('zoom0'), kind:'Dummy1'}
     bar:{value: Symbol('zoom1'), kind:'Dummy2'}
});

exports.entities = tc.createEntities({

});

//  serves the JSON for the API docs generator on the client
exports.serve = tc.createAPIJSON().serve();  // returns middleware that will respond with the json

and note that register Symbols returns an object where foo points to foo.value and bar points to bar.value

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions