We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ea531 commit 55d79efCopy full SHA for 55d79ef
src/content/docs/workers/static-assets/routing/single-page-application.mdx
@@ -76,7 +76,7 @@ export default {
76
async fetch(request, env) {
77
const url = new URL(request.url);
78
79
- if (url.pathname.startsWith("/app/")) {
+ if (url.pathname === "/api/name") {
80
return new Response(JSON.stringify({ name: "Cloudflare" }), {
81
headers: { "Content-Type": "application/json" },
82
});
0 commit comments