@owstack/ows-wallet-servlet-bitpay
Version:
An OWS Wallet servlet plugin for the BitPay API.
24 lines (16 loc) • 486 B
JavaScript
;
angular.module('owsWalletPlugin').config(function($pluginConfigProvider) {
/**
* API routes for our service.
* A match is made by searching routes in order, the first match returns the route.
*/
$pluginConfigProvider.router.routes([
{ path: '/bitpay/invoices', method: 'POST', handler: 'createInvoice' }
]);
})
.run(function(bitpayService) {
// Bump bitpayService.
owswallet.Plugin.ready(function() {
// Do initialization here.
});
});