Example of Silex Resource provider for Angular js