only serve html and json with api