Made api route a express app itself