Skip to content

Commit 754d6e0

Browse files
committed
1 parent 776ce84 commit 754d6e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/api/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ const app = new Hono();
66
// 디버깅을 위해 모든 출처를 허용하는 가장 단순한 CORS 설정..
77
app.use('*', cors());
88

9-
// 다른 모든 라우트를 제거하고, 오직 이 테스트 라우트만 남깁니다.
9+
// 👇 Hono 앱의 루트 경로 ('/api')에 대한 핸들러를 추가합니다.
10+
app.get('/', (c) => {
11+
return c.text('Hello Hono! This is the root.');
12+
});
13+
14+
// 기존 테스트 라우트는 그대로 둡니다.
1015
// 파일 경로가 'api/index.ts' 이므로 최종 경로는 '/api/test-route' 가 됩니다.
1116
app.get('/test-route', (c) => {
1217
return c.json({ message: '✅ 라우팅 테스트 성공! Hono 백엔드가 응답합니다.' });

0 commit comments

Comments
 (0)