File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Express , Response } from "express" ;
2- import { IAdminForth , IAdminUserExpressRequest } from "adminforth" ;
2+ import { Filters , IAdminForth , IAdminUserExpressRequest } from "adminforth" ;
33import * as z from "zod" ;
44import TwoFactorsAuthPlugin from "../plugins/adminforth-two-factors-auth/index.js" ;
55
@@ -72,6 +72,10 @@ export function initApi(app: Express, admin: IAdminForth) {
7272 admin . express . authorize (
7373 async ( req : IAdminUserExpressRequest , res : Response ) => {
7474 admin . refreshMenuBadge ( 'menuTimestamp' , req . adminUser ) ;
75+ const cars_sqlite_list = await admin . resource ( 'cars_sl' ) . list ( [ Filters . EQ ( 'id' , '0' ) ] ) ;
76+ console . log ( 'cars_sqlite_list' , cars_sqlite_list ) ;
77+ const cars_pg_list = await admin . resource ( 'cars_pg' ) . list ( [ Filters . EQ ( 'id' , '0' ) ] ) ;
78+ console . log ( 'cars_pg_list' , cars_pg_list ) ;
7579 res . json ( { message : "Hello from AdminForth API!" } ) ;
7680 }
7781 )
You can’t perform that action at this time.
0 commit comments