Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
fa762df
1
Parent(s):
c4e4521
/v1/models
Browse files
main.ts
CHANGED
|
@@ -7,7 +7,13 @@ const HF_API_URL = 'https://api-inference.huggingface.co';
|
|
| 7 |
const app = new Hono();
|
| 8 |
|
| 9 |
app.use(logger());
|
| 10 |
-
app.get('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
app.post('*', async (c) => {
|
| 13 |
const { pathname, search } = new URL(c.req.url);
|
|
|
|
| 7 |
const app = new Hono();
|
| 8 |
|
| 9 |
app.use(logger());
|
| 10 |
+
app.get('/', (c) => c.text('Hello Hono!'));
|
| 11 |
+
|
| 12 |
+
app.get('/v1/models', (c) =>
|
| 13 |
+
c.json({
|
| 14 |
+
object: 'list',
|
| 15 |
+
data: [],
|
| 16 |
+
}));
|
| 17 |
|
| 18 |
app.post('*', async (c) => {
|
| 19 |
const { pathname, search } = new URL(c.req.url);
|