changed port number
This commit is contained in:
6
bang.go
6
bang.go
@@ -25,7 +25,7 @@ type Email struct {
|
|||||||
Timestamp time.Time `json:"timestamp"`
|
Timestamp time.Time `json:"timestamp"`
|
||||||
Domain string `json:"domain"`
|
Domain string `json:"domain"`
|
||||||
// Add Read field to track if the email has been opened
|
// Add Read field to track if the email has been opened
|
||||||
Read bool `json:"read"`
|
Read bool `json:"read"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// User struct for account management
|
// User struct for account management
|
||||||
@@ -333,6 +333,6 @@ func main() {
|
|||||||
http.HandleFunc("/email", withCORS(receiveEmailHandler))
|
http.HandleFunc("/email", withCORS(receiveEmailHandler))
|
||||||
http.HandleFunc("/mailbox", withCORS(listMailboxHandler))
|
http.HandleFunc("/mailbox", withCORS(listMailboxHandler))
|
||||||
http.HandleFunc("/mailbox/open", withCORS(markEmailOpenedHandler))
|
http.HandleFunc("/mailbox/open", withCORS(markEmailOpenedHandler))
|
||||||
log.Println("Email server running on :8080")
|
log.Println("Email server running on :80")
|
||||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
log.Fatal(http.ListenAndServe(":80", nil))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user