The current server design uses AJAX queries to JSON returning end points on the server. If you want to refactor the entire interface you'll find that OPDS is insufficient/inefficient, you will have to use the endpoints that the current interface uses.
Look at the add_routes() method in browse.py that defines all the JSON and HTML endpoints. The JSON endpoints should be sufficient for your interface, if not just let me know and I can easily add new ones.
The HTML endpoints all use templates so you should just be able to get away with changing the templates with minimal or no need for code changes.
|