0

If you want to have a blog with pagination, this can be one routing example in Qwik:

- src
  - routes
    - blog
      - index.jsx
      - [pageNumber]
        - index.jsx

And it works for /blog and /blog/2 URLs.

The problem is that, it also works for /blog/john and /blog/j!o*hn too.

In other words, it's not limited to numbers only.

How can I limit route values to specific types only?

Big boy
  • 1,113
  • 2
  • 8
  • 23

0 Answers0