- AdminPlansController & Service (CRUD, reorder) - AdminPaymentMethodsController & Service (CRUD, reorder) - AdminPaymentsController & Service (verify, reject, pending count) - AdminUsersController & Service (search, suspend, grant pro access, stats) - AdminConfigController & Service (dynamic config management) - Wire all controllers into AdminModule - Import AdminModule in AppModule Admin API Routes: - GET/POST/PUT/DELETE /admin/plans - GET/POST/PUT/DELETE /admin/payment-methods - GET /admin/payments (with status filter) - POST /admin/payments/:id/verify - POST /admin/payments/:id/reject - GET /admin/users (with search) - POST /admin/users/:id/grant-pro - GET/POST/DELETE /admin/config All routes protected by AuthGuard + AdminGuard
21 lines
602 B
TypeScript
21 lines
602 B
TypeScript
import { Strategy } from 'passport-jwt';
|
|
export interface JwtPayload {
|
|
sub: string;
|
|
email: string;
|
|
role?: string;
|
|
iat?: number;
|
|
exp?: number;
|
|
}
|
|
declare const JwtStrategy_base: new (...args: [opt: import("passport-jwt").StrategyOptionsWithRequest] | [opt: import("passport-jwt").StrategyOptionsWithoutRequest]) => Strategy & {
|
|
validate(...args: any[]): unknown;
|
|
};
|
|
export declare class JwtStrategy extends JwtStrategy_base {
|
|
constructor();
|
|
validate(payload: JwtPayload): Promise<{
|
|
userId: string;
|
|
email: string;
|
|
role: string;
|
|
}>;
|
|
}
|
|
export {};
|