I am using the latest version of Grails which is 2.3.2
In my application there are admin and public site. But both share the same User domain class for example.
Here the problems come, I need to have two controllers for admin and customer. Obviously I have two options:
First: I create two controllers with different name: AdminController and CustomerController
Second: I have to different packages which is admin and customer, they both have a UserController under the packages.
My question is which is the best way to achieve my requirements? First or Second? If using second (different package), how can I do that? view or urlmapping? Any example?