We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc9fc7 commit 86a903aCopy full SHA for 86a903a
1 file changed
adminforth/commands/createApp/templates/api.ts.hbs
@@ -4,8 +4,8 @@ export function initApi(app: Express, admin: IAdminForth) {
4
app.get(`${admin.config.baseUrl}/api/hello/`,
5
6
// you can use data API to work with your database https://adminforth.dev/docs/tutorial/Customization/dataApi/
7
- // req.adminUser to get info about the logged-in admin user
8
async (req: Request, res: Response) => {
+ // req.adminUser to get info about the logged-in admin user
9
const allUsers = await admin.resource("adminuser").list([]);
10
res.json({
11
message: "List of logged-in admin user from AdminForth API",
0 commit comments