auto register resources as routes