mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-08 05:24:49 +01:00
29 lines
715 B
JavaScript
29 lines
715 B
JavaScript
app.service( 'API',
|
|
[ '$http',
|
|
function( $http ) {
|
|
this.balance = function( params ) {
|
|
return $http.get( '/api/ledger/balance', {
|
|
params: {
|
|
period: params.period,
|
|
categories: params.categories
|
|
}
|
|
} );
|
|
};
|
|
|
|
this.register = function( params ) {
|
|
return $http.get( '/api/ledger/register', {
|
|
params: {
|
|
period: params.period,
|
|
categories: params.categories
|
|
}
|
|
} );
|
|
};
|
|
|
|
this.dates_salaries = function( ) {
|
|
return $http.get( '/api/ledger/dates_salaries' );
|
|
};
|
|
|
|
this.accounts = function( ) {
|
|
return $http.get( '/api/ledger/accounts' );
|
|
};
|
|
} ] );
|