Closed jstriebel closed 5 years ago
Also, I removed the add_dataset
endpoint /api/<backend_name>/<organization_name>/<dataset_name>
, which will be replaced by some logic on the upload route (POST on /data/datasets
).
@fm3 Actually having something similar like the routes-files should be easy:
from .my_route import my_route
app.route("/bla/<param1>/<param2>", methods=["POST"])(my_route)
The problem here is that it's harder to see if the method's and the url's parameters match. That's why I would leave it like this for now.
True, fine by me to leave it :)
This PR mainly extracts the routes into files, as the
__main__.py
grew too big, more routes are coming in the next PR. @fm3 What do you think about the file-structure?Also, I noted a bug from the last PR, which I fixed here as well, see my comment at the code.