Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle and reply when accessing / #745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpanato
Copy link
Collaborator

@cpanato cpanato commented Feb 7, 2025

not sure if is the best place or that is the way to handle that, but trying to reply a better message when people access https://octo-sts.dev/

{"code":5, "message":"Not Found", "details":[]}

@cpanato cpanato requested review from mattmoor and k4leung4 February 7, 2025 19:08
@@ -76,6 +77,17 @@ func main() {
log.Panicf("failed to register gateway endpoint: %v", err)
}

if err := d.MUX.HandlePath(http.MethodGet, "/", func(w http.ResponseWriter, r *http.Request, _ map[string]string) {
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure that this won't hide the other handlers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, i will try to test that,
i was unsure if that is the correct way to do that

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