Skip to content

Commit 84658fa

Browse files
authored
Fix/#107-C: 프록시를 위해 백엔드 api 주소 수정 (#108)
nginx에서 proxying으로 '/api'로 시작하는 주소를 백엔드로 보내려고 합니다. 그렇게 하기 위해 백엔드 api 주소 앞에 '/api'를 추가했습니다. 이 PR이 머지되면 로컬에서 `.env` 파일도 수정해야 합니다. 클라이언트가 알고있는 서버 주소에 `/api`를 추가하면 됩니다.
1 parent b6f1ba9 commit 84658fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ app.use(cookieParser(env.COOKIE_SECRET_KEY));
1818
app.use(cors());
1919

2020
app.get('/', (req: Request, res: Response) => res.send('Express'));
21-
app.use('/auth', authRouter);
22-
app.use('/workspace', workspaceRouter);
23-
app.use('/user', userRouter);
21+
app.use('/api/auth', authRouter);
22+
app.use('/api/workspace', workspaceRouter);
23+
app.use('/api/user', userRouter);
2424

2525
app.use(errorHandler);
2626

0 commit comments

Comments
 (0)