Skip to content

Commit 7702b76

Browse files
author
Pavlo Kulyk
committed
refactor: clean up whitespace in API initialization code
1 parent 00f4bbc commit 7702b76

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { Express, Request, Response } from "express";
22
import { IAdminForth } from "adminforth";
3-
43
export function initApi(app: Express, admin: IAdminForth) {
54
app.get(`${admin.config.baseUrl}/api/hello/`,
6-
75
async (req: Request, res: Response) => {
86
const allUsers = await admin.resource("adminuser").list([]);
9-
107
res.json({
118
message: "Hello from AdminForth API!",
129
users: allUsers,

0 commit comments

Comments
 (0)