Api layer

Full app
if the //good doesn't do anything try to change the if condition