strip api without / at the end

@blakehilscher