added api folder
added posts file to backend