Add admin HTML editor page and editor routes#187
Add admin HTML editor page and editor routes#187Schlaumeier5 merged 2 commits intoLearn-Monitor:mainfrom
Conversation
Schlaumeier5
left a comment
There was a problem hiding this comment.
Seems nice so far, but I still need a few things
There was a problem hiding this comment.
Can you add %[site;title=HTML Editor;content=!FOLLOWS] at the beginning?
There was a problem hiding this comment.
Also maybe add a text field where you can put in the file name it should be saved as.
There was a problem hiding this comment.
@Schlaumeier5 Thanks for the review! I’ve added the template header to editor.html and registered a stub POST handler for /editor in PostRequestHandler.java as suggested.
The POST handler currently redirects back to /editor, and can be extended later with the actual save logic.
Please let me know if you’d like any adjustments or a different approach.
There was a problem hiding this comment.
Registering post handlers happens in Java code, see here:
(you can just do a stub method if you do not want to code the logic)
(registering post request handlers this way may be added in a future update, that's why there is "type": "GET")
This PR adds a basic HTML editor page for admins.
Changes included:
This sets up the structure for editing templates via the admin UI.