make the app a restful api