Make API_ROOT actually work.

I'm not sure why I failed to connect it up in 4a171ab, and it wasn't
in the right place either.

Change-Id: Ica3037c8d289d5399db36f20d7a2fecef35a485b