feat(indices): add authenticated OpenFIGI search

Add the bounded OpenFIGI v3 adapter, authenticated search route, and server-side configuration.

Refs #3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 22:31:35 +01:00
parent 461f525f20
commit 5cb45138df
15 changed files with 741 additions and 16 deletions

View File

@ -33,12 +33,13 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
authed := api.Group("/")
authed.Use(auth.Middleware(jwtSecret))
authed.GET("/indices/search", h.SearchIndices)
authed.GET("/me", h.GetMe)
authed.GET("/me/preferences", h.GetMyPreferences)
authed.PUT("/me/preferences", h.UpdateMyPreferences)
authed.GET("/me/assets", h.GetMyAssets)
authed.POST("/me/assets", h.AddMyAsset)
authed.DELETE("/me/assets/:symbol", h.RemoveMyAsset)
authed.DELETE("/me/assets/:id", h.RemoveMyAsset)
authed.GET("/summaries", h.ListSummaries)
authed.GET("/summaries/generations", h.ListGenerations)