Hi, It seems that asmBB will render all page then return to user.
Would you please add some api route? Then others can make a different frontend like SPA?
Thanks!
Hi, It seems that asmBB will render all page then return to user.
Would you please add some api route? Then others can make a different frontend like SPA?
Thanks!
ganuonglachanh Hi, It seems that asmBB will render all page then return to user.
Would you please add some api route? Then others can make a different frontend like SPA?
Thanks!
It is planned to be implemented. But it is a little bit a mixed feelings feature. Because I want to keep the forum working without JS enabled. On the other hand, the API will allow development of desktop clients.
Maybe I will make the API not JSON, but some kind of binary format. This way, will make JS use harder.
johnfound ganuonglachanh Hi, It seems that asmBB will render all page then return to user.
Would you please add some api route? Then others can make a different frontend like SPA?
Thanks!
It is planned to be implemented. But it is a little bit a mixed feelings feature. Because I want to keep the forum working without JS enabled. On the other hand, the API will allow development of desktop clients.
Maybe I will make the API not JSON, but some kind of binary format. This way, will make JS use harder.
Thanks for the info, a json api would be better imo cos lot of frontend use json.
ganuonglachanh Thanks for the info, a json api would be better imo cos lot of frontend use json.
Some kind of json API is available right now. The chat is implemented by SSE and there is an events push service that handles real-time events.
But for now, only the chat events are handled. Later I am planning to implement other kind of events in order to enhance the forum features. But it is very unlikely that AsmBB will be able to work in a form of SPA. I want to keep the JS-less work to the most possible extent.
As a reference you can check the JS code of the chat here: https://asm32.info/fossil/repo/asmbb/artifact/32d13cec3ff9bc24