summaryrefslogtreecommitdiff
path: root/srv/src/http/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/api.go')
-rw-r--r--srv/src/http/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/srv/src/http/api.go b/srv/src/http/api.go
index 19a65d9..da54c9c 100644
--- a/srv/src/http/api.go
+++ b/srv/src/http/api.go
@@ -163,6 +163,9 @@ func (a *api) Shutdown(ctx context.Context) error {
func (a *api) apiHandler() http.Handler {
mux := http.NewServeMux()
+
+ mux.Handle("/csrf", a.getCSRFTokenHandler())
+
mux.Handle("/pow/challenge", a.newPowChallengeHandler())
mux.Handle("/pow/check",
a.requirePowMiddleware(