add a resource for a post