Implement Omada device management and enhance payment processing

- Added new omada-actions.ts file to handle fetching and updating device groups in Omada.
- Updated authMiddleware to include new payment routes.
- Enhanced createPayment function to add devices to a group upon successful payment verification.
- Improved payment verification process to include device management.
- Refactored PaymentsTable and DevicesToPay components for better UI and state handling.
- Removed unused hasSession function from auth-guard.ts for cleaner code.
This commit is contained in:
2024-12-13 11:24:13 +05:00
parent 36f22c0614
commit e9d81c089a
7 changed files with 222 additions and 25 deletions

View File

@ -21,5 +21,5 @@ export default async function authMiddleware(request: NextRequest) {
}
export const config = {
matcher: ["/devices", "/"],
matcher: ["/devices", "/", "/payments", "/payments/:paymentId"],
};