From b0626849281cf94ab11a245a76d8b96fa8cc4c60 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 17 Jan 2026 12:33:29 -0500 Subject: [PATCH] fix: update plugin interface to use any instead of chi.Router MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Server plugin interface uses `any` for route registration methods. Cast to chi.Router inside the method implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- plugin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.go b/plugin.go index e847c5c..44ed0b2 100644 --- a/plugin.go +++ b/plugin.go @@ -88,13 +88,13 @@ func (p *VaultPlugin) Migrate(ctx context.Context, x *xorm.Engine) error { } // RegisterRepoWebRoutes adds vault routes under /{owner}/{repo}/vault -func (p *VaultPlugin) RegisterRepoWebRoutes(m chi.Router) { - routes.RegisterRepoWebRoutes(m, p.license) +func (p *VaultPlugin) RegisterRepoWebRoutes(m any) { + routes.RegisterRepoWebRoutes(m.(chi.Router), p.license) } // RegisterRepoAPIRoutes adds vault API routes under /api/v1/repos/{owner}/{repo}/vault -func (p *VaultPlugin) RegisterRepoAPIRoutes(m chi.Router) { - routes.RegisterRepoAPIRoutes(m, p.license) +func (p *VaultPlugin) RegisterRepoAPIRoutes(m any) { + routes.RegisterRepoAPIRoutes(m.(chi.Router), p.license) } // ValidateLicense validates the plugin license