Skip to content

Commit 157786d

Browse files
authored
docs: Add missing endpoint types to routing overview. (#1064)
1 parent fb5da20 commit 157786d

File tree

1 file changed

+1
-1
lines changed
  • packages/docs/src/routes/qwikcity/routing/overview

1 file changed

+1
-1
lines changed

packages/docs/src/routes/qwikcity/routing/overview/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In the Qwik City routes directory, `folders + an index` file map to a URL path.
2525

2626
Note that the leaf file at the end of the route named index. This is **important**. In other meta-frameworks you may be familiar with, there is a distinction made between `pages` and `data endpoints` or `api routes`. In Qwik City, there is no distinction, they are all `endpoints`.
2727

28-
To define an endpoint, you must a define an `index.[filetype]` where [filetype] can be one of:
28+
To define an endpoint, you must a define an `index.[filetype]` where [filetype] can be one of `.ts`, `.tsx`, `.js`, `.jsx`, `.md`, or `.mdx`.
2929

3030
While the following directory structure:
3131

0 commit comments

Comments
 (0)