Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jan 10, 2024
1 parent d67722a commit f6b31d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controllers/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (web *WebController) PolicyDetailsUpdatePage(c *gin.Context) {
c.HTML(http.StatusOK, "policy_details.tmpl", pageContext)
}

func (web *WebController) RedirectToLoginSubdomain(context *gin.Context) {
func (web *WebController) RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects(context *gin.Context) {
host := context.Request.Host
if strings.Contains(host, "digger.dev") || strings.Contains(host, "uselemon.cloud") {
hostParts := strings.Split(host, ".")
Expand Down
2 changes: 1 addition & 1 deletion backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func main() {
})

r.LoadHTMLGlob("templates/*.tmpl")
r.GET("/", web.RedirectToLoginSubdomain)
r.GET("/", web.RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects)

r.POST("/github-app-webhook", controllers.GithubAppWebHook)

Expand Down

0 comments on commit f6b31d7

Please sign in to comment.