Skip to content

feat: allow 'anakin' handler in domain config handler chain editor - #45

Open
MayurK-cmd wants to merge 1 commit into
Anakin-Inc:masterfrom
MayurK-cmd:fix/domain-config-anakin-handler
Open

feat: allow 'anakin' handler in domain config handler chain editor#45
MayurK-cmd wants to merge 1 commit into
Anakin-Inc:masterfrom
MayurK-cmd:fix/domain-config-anakin-handler

Conversation

@MayurK-cmd

@MayurK-cmd MayurK-cmd commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #46
Adds the anakin handler to the available options in the Domain Configs
handler-chain editor in the web dashboard.

The server already registers an anakin handler (anakin.io API fallback)
whenever ANAKIN_API_KEY is set (server/cmd/server/main.go:83-84, handler
name "anakin" in server/internal/handler/api.go:92), and a domain config's
handlerChain is passed through as the chain's AllowedHandlers filter. The
form previously hardcoded the available handlers to ['http', 'browser'], so
anakin could not be selected from the UI.

How to test

  1. Start the server with ANAKIN_API_KEY set so the anakin handler is enabled.
  2. Open the web dashboard → Domain ConfigsAdd Config.
  3. In the Handler Chain section, confirm a + anakin button now appears
    (in addition to + http / + browser) and can be added and reordered.
  4. Save a config with handlerChain including anakin and confirm it persists
    (GET /v1/domain-configs returns the chain as saved).

Checklist

  • Tests pass (cd server && go test ./...) — no Go code changed
  • No breaking changes to existing API endpoints
  • Documentation updated — N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot add 'anakin' handler to a domain config's handler chain from the web UI

1 participant