how should I configure my worker so it’s using index.html for spa but I can configure api routes in worker? currently I rewrite all other login to index.html - is it a good solution?