fix compiler warning about unused var
serve API relative rather than absolute