You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce46f00
Browse filesBrowse the repository at this point in the historyBrowse files
The `Handler` struct holds use case interfaces — not `*sql.DB` directly. Add new use case fields here as features are added.
30
+
The `Handler` struct holds use case interfaces and infrastructure dependencies — not `*sql.DB` directly. `verifier` is stored on the struct (not passed to `RegisterRoutes`) so the WebSocket handler can read it inline for query-param auth.
29
31
30
32
## Wiring (server.go)
31
33
`internal/server/server.go` contains `NewServer(app *bootstrap.App) *http.Server` — wiring only, no logic.
@@ -34,11 +36,11 @@ It receives the already-validated `*bootstrap.App` (which holds `*sql.DB`, `Cach
Copy file name to clipboardExpand all lines: backend/docs/swagger/docs.go
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,44 @@ const docTemplate = `{
97
97
}
98
98
}
99
99
}
100
+
},
101
+
"/ws": {
102
+
"get": {
103
+
"description": "Upgrades HTTP to WebSocket. Pass a Firebase ID token as `+"`"+`?token=\u003ctoken\u003e`+"`"+`. Returns 401 when the token is missing or invalid.",
Copy file name to clipboardExpand all lines: backend/docs/swagger/swagger.json
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,44 @@
91
91
}
92
92
}
93
93
}
94
+
},
95
+
"/ws": {
96
+
"get": {
97
+
"description": "Upgrades HTTP to WebSocket. Pass a Firebase ID token as `?token=\u003ctoken\u003e`. Returns 401 when the token is missing or invalid.",
0 commit comments