(req: NextRequestWithAuth)
| 76 | }; |
| 77 | |
| 78 | export async function middleware(req: NextRequestWithAuth) { |
| 79 | const { pathname } = req.nextUrl; |
| 80 | if (pathname.startsWith('/api/mobile')) { |
| 81 | return withMobileAuth(req); |
| 82 | } |
| 83 | return await withAuth(req); |
| 84 | } |
| 85 | |
| 86 | export default withAuth; |
nothing calls this directly
no test coverage detected