a simple example of ngResource working with flask