fixes api route