/api/posts end-point created. User can see his own posts only after logging in.