Intial /posts/get function