File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"tasks" : {
3
- "start" : " deno run --env --unstable-kv --allow-net --allow-env src/main.ts" ,
4
- "dev" : " deno run --watch --env --unstable-kv --allow-net --allow-env src/main.ts"
3
+ "start" : " deno run --env --unstable-kv --allow-net --allow-env --allow-read src/main.ts" ,
4
+ "dev" : " deno run --watch --env --unstable-kv --allow-net --allow-env --allow-read src/main.ts"
5
5
},
6
6
"imports" : {
7
7
"@hono/zod-validator" : " npm:@hono/zod-validator@^0.2.2" ,
Original file line number Diff line number Diff line change
1
+ User-Agent: *
2
+ Disallow: /
Original file line number Diff line number Diff line change 1
1
import { Hono } from "hono" ;
2
+ import { serveStatic } from "hono/deno" ;
2
3
3
4
import { home , redirect } from "../controllers/index.ts" ;
4
5
import { sendAccessLog } from "../services/log.ts" ;
@@ -17,6 +18,7 @@ app.use(async (c, next) => {
17
18
}
18
19
}
19
20
} ) ;
21
+ app . use ( "/robots.txt" , serveStatic ( { path : "public/robots.txt" } ) ) ;
20
22
21
23
app . get ( "/" , home ) ;
22
24
app . get ( "/:param" , redirect ) ;
You can’t perform that action at this time.
0 commit comments