fix: update plugin interface to use any instead of chi.Router
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user