Last active
September 22, 2016 15:32
-
-
Save chrisabrams/1bdceb86d7bac5625d996b79bc4cdcef to your computer and use it in GitHub Desktop.
idea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function pluginInterface(props = {}) { | |
const Model = modelInterface(props.Model) | |
const Controller = controllerInterface(props.Controller, Model) | |
const ChargeModel = chargeModelInterface(Model) | |
const ChargeController = chargeControllerInterface(Controller, ChargeModel) | |
return [ | |
{ | |
Controller: ChargeController, | |
migrations: chargeMigrations, | |
Model: ChargeModel, | |
routeName: 'charges', | |
routes: chargeRouteInterface({ | |
Controller: ChargeController | |
}) | |
} | |
] | |
} | |
const settings = { | |
pluginName: 'payments' | |
} | |
export {settings} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment