Function routing shares the same syntax as page routing.
Both top-level and nested routes are supported.
index.js files are routed at their directory path e.g.
Use square brackets (
[ ]) in the file path to mark dynamic segments of the URL.
So to create an Function for fetching user information by
Dynamic routes share syntax with client-only routes.
Gatsby also supports splat (or wildcard) routes, which are routes that will match anything after the splat. These are less common, but still have use cases.