File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,13 @@ package mfa
2
2
3
3
import (
4
4
"log"
5
- "net/http"
6
5
)
7
6
8
7
type App struct {
9
8
config EnvConfig
10
9
db * Storage
11
10
}
12
11
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
-
18
12
// NewApp creates a new App containing configuration and service clients
19
13
func NewApp (cfg EnvConfig ) * App {
20
14
db , err := NewStorage (cfg .AWSConfig )
Original file line number Diff line number Diff line change @@ -31,6 +31,5 @@ func getRoutes(app *mfa.App) map[string]http.HandlerFunc {
31
31
"PUT /webauthn/login" : app .FinishLogin ,
32
32
"DELETE /webauthn/user" : app .DeleteUser ,
33
33
"DELETE /webauthn/credential/{" + mfa .IDParam + "}" : app .DeleteCredential ,
34
- "POST /api-key/error" : app .FakeError ,
35
34
}
36
35
}
You can’t perform that action at this time.
0 commit comments