We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b985796 commit 545f5e4Copy full SHA for 545f5e4
1 file changed
adminforth/commands/createApp/templates/api.ts.hbs
@@ -10,15 +10,15 @@ export function initApi(app: Express, admin: IAdminForth) {
10
async (req: Request, res: Response) => {
11
const allUsers = await admin.resource("adminuser").list([]);
12
res.json({
13
- message: "Hello from AdminForth API!",
+ message: "List of adminuser from AdminForth API",
14
users: allUsers,
15
});
16
}
17
18
// you can use admin.express.authorize to get info about the current user
19
admin.express.authorize(
20
21
- res.json({ message: "Hello from AdminForth API!", adminUser: req.adminUser });
+ res.json({ message: "Current adminuser from AdminForth API", adminUser: req.adminUser });
22
23
)
24
);
0 commit comments