[with-typescript] Updated TypeScript example to use API routes (#9073)
* [with-typescript] Updated TypeScript example to use API routes Next.js 9.0.0 has been out for a while, which supports API routes, but the examples were never updated to make use of it. This PR adds a simple example of an API route which also makes use of dynamic routing. A simple `fetch()` wrapper is also added for example purposes, and the pages structure have also been updated to dynamic routing. * Properly link to the dynamic page
Showing
Please
register
or
sign in
to comment