Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crud_generation module--generate_crud function bugs or enhance #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aohan237
Copy link

change generate_crud args to:
generate_crud(app, model_array, base_url='/', methods=['GET']):
***
app.add_route(_generate_base_route(model_array), base_url, methods=methods)

this may will enalbe crud to start with more api edition, such as 'v1, v2'

if not ,original code will have exception if there is already a '/'

this is my first pull request in github, hope you can understand, and this will help

Typhon added 2 commits February 20, 2017 21:42
Merge pull request #66 from Typhon66/stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant