coleifer / sqlite-web

Web-based SQLite database browser written in Python
MIT License
3.43k stars 339 forks source link

Serve sqlite-web in a flask end point #152

Closed arnerak closed 6 months ago

arnerak commented 6 months ago

Hey there!

I'm looking for a way to serve sqlite-web in a flask end point of an existing app. Something along the lines of:

@app.route('/db/<path:path>')
def db(path):
    # render sqlite-web for given path

Is this somehow achievable with the current implementation?

Thank you for the great project :)

coleifer commented 6 months ago

These appear to be the relevant docs:

https://flask.palletsprojects.com/en/2.3.x/patterns/appdispatch/#