#29 feat: add user profile menu in navbar

This commit is contained in:
mono
2026-03-14 22:24:38 -05:00
parent 71294af7fa
commit 0c31d21212
3 changed files with 57 additions and 8 deletions

View File

@@ -62,6 +62,10 @@ class Api {
sendSalesToTryton(){
return this.apiImplementation.sendSalesToTryton();
}
getCurrentUser() {
return this.apiImplementation.getCurrentUser();
}
}
export default Api;

View File

@@ -88,6 +88,11 @@ class DjangoApi {
const url = this.base + '/don_confiao/api/enviar_ventas_a_tryton';
return this.postRequest(url, {});
}
getCurrentUser() {
const url = this.base + '/users/me/';
return this.getRequest(url);
}
}
export default DjangoApi;