lukepighetti/fluro

How to make Fluro defined route parameters OPTIONAL in flutter?

Aperta

#229 aperta il 8 apr 2021

 (1 commento) (0 reazioni) (0 assegnatari)Dart (408 fork)batch import
good first issue

Metriche repository

Star
 (3712 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have defined this route using Fluro. exchange/:pair

There is a problem! I want :pair to be optional. If client types https://host:port/exchange/BNB_BTC everything goes fine. but assume the user is looking for https://host:port/exchange and he confronts with 404 error cause there is no such route/path.

I mean something like exchange/{:pair}.

Guida contributor