ontodev / sprocket

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Try to modularize Sprocket using Flask Blueprints #33

Closed jamesaoverton closed 2 years ago

jamesaoverton commented 2 years ago

https://flask.palletsprojects.com/en/2.0.x/blueprints/

Right now it's hard to reuse Sprocket in any other project because it "owns" top-level paths. For the CMI-PB Next project I would like to use Sprocket under a /table URL prefix. The "Flask way" of doing this seems to be Blueprints. We haven't used them before, but lets' give them a try.

beckyjackson commented 2 years ago

~I've got this mostly working, but I ran into an issue with the default mapping (/). We set this based on if a default table argument is provided, so it isn't set until runtime~

Never mind - I figured out a workaround :)

beckyjackson commented 2 years ago

@jamesaoverton please close this issue - this is resolved.