feat: init

This commit is contained in:
EdgeOne Pages
2025-12-31 17:08:26 +08:00
commit d22628f972
19 changed files with 7647 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { Hono } from 'hono';
const upload = new Hono();
// File upload endpoint
upload.post('/', async (c) => {
const body = await c.req.parseBody();
console.log(body['file'], 'File uploaded');
return c.json({
success: true,
message: 'File uploaded successfully',
fileName: body['file']
});
});
export default upload;