Skip to content

Removed /api/ path prefix.#7

Merged
digitalnomad91 merged 1 commit intomainfrom
refactor/remove-graphql-rest-consolidation
Feb 20, 2026
Merged

Removed /api/ path prefix.#7
digitalnomad91 merged 1 commit intomainfrom
refactor/remove-graphql-rest-consolidation

Conversation

@digitalnomad91
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings February 20, 2026 07:06
@digitalnomad91 digitalnomad91 merged commit c8faecf into main Feb 20, 2026
1 check passed
@digitalnomad91 digitalnomad91 deleted the refactor/remove-graphql-rest-consolidation branch February 20, 2026 07:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the legacy /api URL prefix behavior and updates Swagger documentation routing to live under a non-/api path.

Changes:

  • Removed the Express middleware that rewrote non-/api/* requests to /api/*.
  • Updated Swagger setup and logging to use docs (or swagger.path) instead of api/docs.
  • Changed the default Swagger path in config from api to docs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main.ts Removes /api rewrite middleware; moves Swagger UI to /docs (or swagger.path) and updates startup log output accordingly.
src/common/configs/config.ts Updates default Swagger path from api to docs to match the new Swagger route.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants