Skip to content

Commit bb88a2d

Browse files
committed
Revert "add a new endpoint just to see that Sentry works as expected"
This reverts commit 4800b74.
1 parent 86fcb4b commit bb88a2d

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

app.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@ package mfa
22

33
import (
44
"log"
5-
"net/http"
65
)
76

87
type App struct {
98
config EnvConfig
109
db *Storage
1110
}
1211

13-
func (a *App) FakeError(w http.ResponseWriter, r *http.Request) {
14-
jsonResponse(w, "this is a test message generated to confirm Sentry is working", http.StatusInternalServerError)
15-
log.Printf("this is a test log entry generated to confirm Sentry is working")
16-
}
17-
1812
// NewApp creates a new App containing configuration and service clients
1913
func NewApp(cfg EnvConfig) *App {
2014
db, err := NewStorage(cfg.AWSConfig)

router/router.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ func getRoutes(app *mfa.App) map[string]http.HandlerFunc {
3131
"PUT /webauthn/login": app.FinishLogin,
3232
"DELETE /webauthn/user": app.DeleteUser,
3333
"DELETE /webauthn/credential/{" + mfa.IDParam + "}": app.DeleteCredential,
34-
"POST /api-key/error": app.FakeError,
3534
}
3635
}

0 commit comments

Comments
 (0)