X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fweb%2Fjs%2Fapi.js;h=b626c5f704e7a33a55f9dfa73997d9205f510d70;hb=4495b984d3e60874281f37cdb2dbe2cf1c3874ab;hp=62530ba8a82b0122016c0ece2ab5cc149fdda5b9;hpb=2da5b12c31074591eaf16929b760322b98f189e8;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git diff --git a/cmd/web/js/api.js b/cmd/web/js/api.js index 62530ba..b626c5f 100644 --- a/cmd/web/js/api.js +++ b/cmd/web/js/api.js @@ -116,6 +116,14 @@ var ApiEndpoints = { return '/market/' + params.name + '/update'; } }, + 'USER_ACCOUNT': { + 'type': 'GET', + 'auth': true, + 'parameters': [], + 'buildUrl': function(params) { + return '/user/account'; + } + }, 'OTP_ENROLL': { 'type': 'GET', 'auth': true, @@ -134,6 +142,15 @@ var ApiEndpoints = { return '/otp/validate'; } }, + 'ADMIN_PORTFOLIOS': { + 'type': 'GET', + 'auth': true, + 'parameters': [], + 'buildUrl': function() { + return '/admin/portfolios'; + } + }, + }; Api.BuildRequest = function(endpointId, params) {