added routes for posts through 'resources'