fix the restart path
fix ruby version of the rvmrc
add pry-debugger
refactor code of posts
add api for posts
Merge pull request #3 from tony612/add-api

Add api