Skip to content

Commit

Permalink
removing stuff that is not used and models.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Nov 19, 2023
1 parent 9a03ba8 commit 6db2f85
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 61 deletions.
4 changes: 2 additions & 2 deletions cmd/bruter/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ func routes(app *config.AppConfig) http.Handler {
Irc: irc,
}

sslargs := models.HomeArgs{
sslargs := models.TemplateData{
SSLInfo: sslinfo,
}

whoisargs := models.HomeArgs{
whoisargs := models.TemplateData{
WhoisInfo: whoisinfo,
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (m *Repository) Home(args models.HomeArgs) http.HandlerFunc {
}
}

func (m *Repository) SSLInfo(args models.HomeArgs) http.HandlerFunc {
func (m *Repository) SSLInfo(args models.TemplateData) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var templateData models.TemplateData
sslInfo, err := ssl.FetchCrtData(m.App.Domain)
Expand All @@ -76,7 +76,7 @@ func (m *Repository) SSLInfo(args models.HomeArgs) http.HandlerFunc {
}
}

func (m *Repository) WhoisInfo(args models.HomeArgs) http.HandlerFunc {
func (m *Repository) WhoisInfo(args models.TemplateData) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var templateData models.TemplateData
whoisInfo, err := network.WhoisLookup(m.App.Domain)
Expand Down
23 changes: 0 additions & 23 deletions pkg/models/home.go

This file was deleted.

21 changes: 0 additions & 21 deletions pkg/models/templatedata.go

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/models/urldata.go

This file was deleted.

0 comments on commit 6db2f85

Please sign in to comment.