Controller for posts (CRUD-operations)