T1ckbase commited on
Commit
9f8d826
·
1 Parent(s): ce4a7b3
Files changed (3) hide show
  1. deno.json +1 -1
  2. main.ts +2 -1
  3. tmp/foo.txt +1 -0
deno.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "tasks": {
3
  "dev": "deno --allow-net --allow-read --allow-env --watch main.ts",
4
- "serve": "deno serve --allow-net --watch --port 7860 serve.ts"
5
  },
6
  "imports": {
7
  "@hono/hono": "jsr:@hono/hono@^4.7.1",
 
1
  {
2
  "tasks": {
3
  "dev": "deno --allow-net --allow-read --allow-env --watch main.ts",
4
+ "serve": "deno serve --allow-net --allow-read --allow-env --watch --port 7860 serve.ts"
5
  },
6
  "imports": {
7
  "@hono/hono": "jsr:@hono/hono@^4.7.1",
main.ts CHANGED
@@ -14,10 +14,11 @@ const JINA_API_URL = 'https://deepsearch.jina.ai';
14
  const app = new Hono();
15
 
16
  app.use(logger());
17
- app.use('/tmp/*', serveStatic({ root: '/tmp' }));
18
 
19
  app.get('/', (c) => c.text('Hello Hono!'));
20
 
 
 
21
  // LM Studio
22
  app.get('/v1/models', (c) => {
23
  return c.json({
 
14
  const app = new Hono();
15
 
16
  app.use(logger());
 
17
 
18
  app.get('/', (c) => c.text('Hello Hono!'));
19
 
20
+ app.use('/tmp/*', serveStatic({ root: './' }));
21
+
22
  // LM Studio
23
  app.get('/v1/models', (c) => {
24
  return c.json({
tmp/foo.txt CHANGED
@@ -0,0 +1 @@
 
 
1
+ bar