updated api enpoints to use relative paths,