Skip to content

Commit ce7fb9e

Browse files
committed
fix: Move scheme.json to server root
1 parent 83b21e6 commit ce7fb9e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
username: ${{ github.actor }}
5555
password: ${{ secrets.GITHUB_TOKEN }}
5656

57+
- run: cp openapi/schema.json server/
58+
5759
- name: Build and push
5860
uses: docker/build-push-action@v5
5961
with:

server/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ test/performance/
1818
# Minio
1919
minio/
2020

21+
# Openapi scheme
22+
schema.json

server/src/controllers/rest/SwaggerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class SwaggerRestApiController {
1212
constructor(ctx: ApiContext) {
1313
const app = ctx.app;
1414
const router = Router();
15-
this._jsonPath = path.join(process.cwd(), "../openapi/schema.json");
15+
this._jsonPath = path.join(process.cwd(), "./schema.json");
1616

1717
app.use("/v1/api-docs", router);
1818

0 commit comments

Comments
 (0)