Not sure if the title is well suited but I am having three apps (static content) at the moment:
public
app
admin
public
is just content which is just for the regular web, app
is content which is rendered for mobile devices and admin
is basically a tool for administrative stuff. They are all contained in the same Spring Boot application and talk to the REST API at example.com/api
. Technically, I could just place them into resources/static
such that
resources/static/public
resources/static/admin
resources/static/app
which would allow me to access the apps as such:
example.com/public/index.html
example.com/admin/index.html
example.com/app/index.html
However, my goal is to have the following structure:
example.com // For public
admin.example.com // For admin
app.example.com // For app
example.com/api // REST API
How can this be achieved or what can I do to make this possible?