Changed API route to the root