Skip to content

Commit 86a903a

Browse files
committed
feat: extend API to include all user and current user in response
1 parent 6cc9fc7 commit 86a903a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adminforth/commands/createApp/templates/api.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export function initApi(app: Express, admin: IAdminForth) {
44
app.get(`${admin.config.baseUrl}/api/hello/`,
55

66
// 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
87
async (req: Request, res: Response) => {
8+
// req.adminUser to get info about the logged-in admin user
99
const allUsers = await admin.resource("adminuser").list([]);
1010
res.json({
1111
message: "List of logged-in admin user from AdminForth API",

0 commit comments

Comments
 (0)