Hi!
We are using
Java Spring and Thymeleaf and I have received a task to change an existing application. The change is to create a new set of webpages but with the menu removed while maintaining the existing functionality. The existing webpage should be left untouched.
The new webpages will be called from another application using its absolute URL.
In addition, the new webpages will have a new set of colours for the buttons and backgrounds, etc. ie: a new CSS.
The previous developer has copied the html webpages and made changes to the CSS. To maintain the functionality, the developer has copied the controller to a new controller for the webpages.
This created a lot of code duplication in the controllers.
I would like to ask what is the best approach to this situation without code duplication.
Feel free to ask any points that I may not be clear. Thank you.