SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.07k stars 650 forks source link

How to access backend data from frontend component AdminBro? #1583

Closed bennaaym closed 7 months ago

bennaaym commented 7 months ago

Hello I have a function that calculate sum of money spent by user. I want to use this function in my frontend component to plot the data on the dashboard of admin bro how can I achieve that? Thank you.

dziraf commented 7 months ago

@bennaaym We don't provide support for AdminBro anymore since we'd rebranded to AdminJS 2 years ago.

You can use ApiClient to run requests against AdminJS backend, an example for dashboard is in the docs: https://docs.adminjs.co/ui-customization/dashboard-customization#optional-creating-a-handler-for-your-dashboard-to-access-server-data