rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.43k stars 44 forks source link

Support FastAPI Routes Without Explicit Index Specification #122

Open Sn3llius opened 3 months ago

Sn3llius commented 3 months ago

Currently, FastAPI routes require explicitly specifying an index. This can be cumbersome and error-prone, especially for larger applications with many routes. It would be beneficial to have a mechanism that allows FastAPI routes to be defined without the need to specify an explicit index, making route definitions cleaner and more intuitive.

Possible Solution:

Implement an internal mechanism in FastAPI that automatically manages route indexing, ensuring routes are registered in the order they are added.

mad-moo commented 2 months ago

@Aran-Fey I remember you working on something like this. Is this issue a thing of the past?