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
22
33import (
44 "log"
5- "net/http"
65)
76
87type 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
1913func NewApp (cfg EnvConfig ) * App {
2014 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 {
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}
You can’t perform that action at this time.
0 commit comments