Skip to content

Commit f6b31d7

Browse files
committed
rename function
1 parent d67722a commit f6b31d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/controllers/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func (web *WebController) PolicyDetailsUpdatePage(c *gin.Context) {
293293
c.HTML(http.StatusOK, "policy_details.tmpl", pageContext)
294294
}
295295

296-
func (web *WebController) RedirectToLoginSubdomain(context *gin.Context) {
296+
func (web *WebController) RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects(context *gin.Context) {
297297
host := context.Request.Host
298298
if strings.Contains(host, "digger.dev") || strings.Contains(host, "uselemon.cloud") {
299299
hostParts := strings.Split(host, ".")

backend/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func main() {
7171
})
7272

7373
r.LoadHTMLGlob("templates/*.tmpl")
74-
r.GET("/", web.RedirectToLoginSubdomain)
74+
r.GET("/", web.RedirectToLoginSubdomainIfDiggerDevOtherwiseToProjects)
7575

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

0 commit comments

Comments
 (0)