added api, added create post on admin