We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 776ce84 commit 754d6e0Copy full SHA for 754d6e0
backend/api/index.ts
@@ -6,7 +6,12 @@ const app = new Hono();
6
// 디버깅을 위해 모든 출처를 허용하는 가장 단순한 CORS 설정..
7
app.use('*', cors());
8
9
-// 다른 모든 라우트를 제거하고, 오직 이 테스트 라우트만 남깁니다.
+// 👇 Hono 앱의 루트 경로 ('/api')에 대한 핸들러를 추가합니다.
10
+app.get('/', (c) => {
11
+ return c.text('Hello Hono! This is the root.');
12
+});
13
+
14
+// 기존 테스트 라우트는 그대로 둡니다.
15
// 파일 경로가 'api/index.ts' 이므로 최종 경로는 '/api/test-route' 가 됩니다.
16
app.get('/test-route', (c) => {
17
return c.json({ message: '✅ 라우팅 테스트 성공! Hono 백엔드가 응답합니다.' });
0 commit comments