vincentporte / fastapi_sqlachemy2_async

FastAPI x sqlAlchemy 2 x postgresql, async mode
MIT License
2 stars 0 forks source link

url references #10

Open vincentporte opened 1 year ago

vincentporte commented 1 year ago

ref: templates.components.navbar

Route names to create users in API vs in templated views are in conflict if methods got the same name. ie organizations.routes.create_organization (API) vs organizations.views.create_organization

questions:

  1. Are there any trick to make them distinguable by fast_api ?
  2. How to reverse the url of the view in templates (and not url of API route) ?