Added support for custom resource in both front and admin