Implemented posts controller using CRUD.