api functional! (except for authblobbusiness)
This commit is contained in:
parent
cf83f8def2
commit
9d674f82ca
|
@ -121,7 +121,8 @@ class TransactionTypeHandler(BaseHandler):
|
|||
class AccountBalanceHandler(BaseHandler):
|
||||
allowed_methods = ('GET',)
|
||||
def read(self, request):
|
||||
pass
|
||||
balance = request.user.get_profile().balance
|
||||
return {'balance': balance}
|
||||
|
||||
class AuthBlobHandler(BaseHandler):
|
||||
# allowed_methods = ('GET', 'POST')
|
||||
|
|
|
@ -35,7 +35,7 @@ urlpatterns = patterns('',
|
|||
url(r'account/transactions/transact/$', transactionTransactRes),
|
||||
url(r'account/transfers/transfer/$', transactionTransactRes),
|
||||
url(r'account/transactions/types/$', transactionTypeRes),
|
||||
url(r'account/transfer/types/$', transactionTypeRes),
|
||||
url(r'account/transfers/types/$', transactionTypeRes),
|
||||
url(r'account/balance/$', accountBalanceRes),
|
||||
|
||||
url(r'auth/blob/$', authBlobRes),
|
||||
|
|
Loading…
Reference in New Issue