mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
mcp: scaffolding of /.pomerium/mcp routes (#5580)
This commit is contained in:
parent
cb0e8aaf06
commit
f1a9401ddc
7 changed files with 100 additions and 0 deletions
|
@ -24,6 +24,9 @@ func (p *Proxy) registerDashboardHandlers(r *mux.Router, opts *config.Options) *
|
|||
h := httputil.DashboardSubrouter(r)
|
||||
h.Use(middleware.SetHeaders(httputil.HeadersContentSecurityPolicy))
|
||||
|
||||
// model context protocol
|
||||
h.PathPrefix("/mcp").Handler(p.mcp.HandlerFunc())
|
||||
|
||||
// special pomerium endpoints for users to view their session
|
||||
h.Path("/").Handler(httputil.HandlerFunc(p.userInfo)).Methods(http.MethodGet)
|
||||
h.Path("/device-enrolled").Handler(httputil.HandlerFunc(p.deviceEnrolled))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue