Changed frontend to make http calls to API. StateProvider resolve came in very handy!