Commit b1dc0400 authored by mingyard's avatar mingyard

feat:去除前缀

parent 79f5e50b
......@@ -21,7 +21,7 @@ RUN yarn build
FROM node:20-slim as app-stage
# 设置环境变量
ENV NODE_ENV=production
ENV NODE_ENV=development
# 设置工作目录
WORKDIR /usr/src/code
......
......@@ -30,9 +30,6 @@ async function bootstrap() {
setupOpenApi(app);
// 设置全局前缀
app.setGlobalPrefix('openapi');
await app.listen(config.port);
console.log('Server Listen ' + config.port);
......
......@@ -8,8 +8,7 @@ export const setupOpenApi = (app: INestApplication) => {
'HTTP status code of 200 indicates a successful response, while any non-200 status code signifies an error response. Specifically, when the HTTP status code is 401, it means that the user is unauthenticated and needs to be redirected to the login page for authentication.',
)
.setVersion('1.0')
.addCookieAuth('translation_session')
.addServer('openapi');
.addCookieAuth('translation_session');
/**
* openapi 展示
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment