[frontend] removed hardcoded frontend url from /api page.