get player id with middleware, not session
This commit is contained in:
		| @@ -61,7 +61,7 @@ func WithSession(sessions player.RowQuerier) func(http.Handler) http.Handler { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // Session returns the session ID set by WithSession in the request context. | ||||
| func Session(ctx context.Context) player.Session { | ||||
| 	return value[player.Session](ctx) | ||||
| // ReqPlayer returns the session ID set by WithSession in the request context. | ||||
| func ReqPlayer(ctx context.Context) player.ID { | ||||
| 	return value[player.ID](ctx) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user