Skip to content

Conversation

@lihz1990
Copy link
Contributor

#34 . Add baseurl support for service with environment KOMPANION_URL_PREFIX

rs := stats.NewKOReaderPGStats(pg)

// HTTP Server
handler := gin.New()
Copy link
Owner

Choose a reason for hiding this comment

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

I think we can simplify implementation, crate RouterGroup with prefix here, and then forwared it to the NewRouter without changes to the code

Copy link
Owner

Choose a reason for hiding this comment

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

router := gin.New()
handler := r.Group(cfg.Urlprefix)

@lihz1990
Copy link
Contributor Author

Okay, after several attempts, I have now set urlprefix in the global. Please review it. I am still not very familiar with Golang and Gin, so if there are any misunderstandings, please let me know.

@lihz1990
Copy link
Contributor Author

Please Review it.

@lihz1990
Copy link
Contributor Author

lihz1990 commented Dec 3, 2025

Hi — sorry to bother. I wanted to follow up on this PR and ask whether there’s anything preventing it from being merged. If the patch doesn’t meet the project’s standards, has too many commits and should be split/rebased, or if it introduces regressions or otherwise breaks the project, I’m happy to revise it however you prefer. I’d really like to help make this project better. Please let me know what I can change. Thanks for your time

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