z-service-initializer

0.0.1 • Public • Published

z-service-initializer

attaches zService to app

'use strict';

module.exports = function (app) {
    var router = require('express').Router();

    router.post(
        '/hello',
        function (req, res, next) {
            app.zService.api.example.hello(req, function(errors, data){
                res.json({
                    errors: errors,
                    result: data
                })
            });
        });

    return router;
};

/z-service-initializer/

    Package Sidebar

    Install

    npm i z-service-initializer

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • and1gio