Hi everyone, I was wondering about an admin section for websites,
would I be better off to separate the admin controllers from the
public exposed controllers? At the moment I do this via a namespace,
but to me it seems more like a duplication…
Is this part of being RESTful?
Can you please tell me how you made the admin sections in your web
apps?
Thanks
ChaosKnight,
Generally, separate admin controllers are not my preference and don’t
seem
to be a clean restful representation of the problem. I prefer having
one
set of controllers for the entities in the system with some actions only
allowed to admins. Also, some actions will work differently for admin
users. Also, some information or functionality in the views will only
be
available to admins. Sometimes admins need views that show information
from
a broad set of entities in the system. In this case, I would create an
admin controller to handle those views.
Anthony C.