alexschimpf / fastapi-versionizer

FastAPI Versionizer
MIT License
79 stars 13 forks source link

prefix path settings #15

Closed 201RichK closed 11 months ago

201RichK commented 1 year ago

is there a way to set prefix path using the advanced exemple ? like /preprod/api/v1.0/specs

alexschimpf commented 1 year ago

Do you mean like this: https://github.com/alexschimpf/fastapi-versionizer/blob/main/examples/advanced.py#L126 ?

In your case, you would do prefix_path='/preprod/api/v{major}.{minor}'

alexschimpf commented 11 months ago

I'm going to consider this issue closed. Please re-open an issue if you're still have questions or are facing some problem.