Skip to content

Commit 55d79ef

Browse files
korinneGregBrimble
andauthored
Update src/content/docs/workers/static-assets/routing/single-page-application.mdx
Co-authored-by: Greg Brimble <[email protected]>
1 parent 45ea531 commit 55d79ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workers/static-assets/routing/single-page-application.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
async fetch(request, env) {
7777
const url = new URL(request.url);
7878

79-
if (url.pathname.startsWith("/app/")) {
79+
if (url.pathname === "/api/name") {
8080
return new Response(JSON.stringify({ name: "Cloudflare" }), {
8181
headers: { "Content-Type": "application/json" },
8282
});

0 commit comments

Comments
 (0)