Andrei
Andrei
CDCloudflare Developers
Created by omg_ketchup on 9/24/2024 in #functions
I'm having trouble with nested routes in
I'd assume that file ./functions/users/friends/index.ts would serve the /users/friends route. If you need to handle friends route for a specific user, you'd use ./functions/users/[user]/friends.ts. This file would handle the /users/:user/friends routes (e.g. /users/daniel/friends). Cloudflare Pages Functions Routing
2 replies