Open aohan237 opened 7 years ago
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
change generate_crud args to: generate_crud(app, model_array, base_url='/', methods=['GET']):
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