+7
storygraph-to-goodreads/backend/index.ts
+7
storygraph-to-goodreads/backend/index.ts
···
18
18
app.get("/frontend/*", (c) => serveFile(c.req.path, import.meta.url));
19
19
app.get("/shared/*", (c) => serveFile(c.req.path, import.meta.url));
20
20
21
+
// Serve robots.txt
22
+
app.get("/robots.txt", (c) => {
23
+
return c.text(`User-agent: *
24
+
Disallow:
25
+
`);
26
+
});
27
+
21
28
// Serve the main app
22
29
app.get("/", (_c) => serveFile("/frontend/index.html", import.meta.url));
23
30