We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 928919e commit 6cc9fc7Copy full SHA for 6cc9fc7
1 file changed
adminforth/commands/createApp/templates/api.ts.hbs
@@ -4,9 +4,7 @@ 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
- const allUsers = await admin.resource.list([]);
8
-
9
- // you can use req.adminUser to get info about the logged-in admin user
+ // req.adminUser to get info about the logged-in admin user
10
async (req: Request, res: Response) => {
11
const allUsers = await admin.resource("adminuser").list([]);
12
res.json({
0 commit comments