Implement host endpoints
When running on the quest, BMBF 2 has some endpoints that are not available in the PC wrapper (and thus aren't implemented yet).
Specifically: (contains endpoints & their function/desired implementation)
- POST
/api/quit
: Quits BMBF (non-forcefully, unlike BMBF 1) - this could be a button in the tools tab. - POST
/api/restart
: Soft-restarts BMBF (doesn't quit the APK entirely, but restartsBMBFService
) - this could also be a button in the tools tab. - POST
/api/runInBackground
: Enables/disables keeping BMBF running while it's not open (POSTtrue
orfalse
as the body) - GET
/api/runInBackground
: Using this and the above endpoint you could create a toggle for running in the background. Note that you should prompt the user to restart upon changing the toggle. (for the change to take effect). - GET
/api/logs
: Downloads the log file. A button for this in the tools tab would be great.