github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/taskcluster/routes.go (about)

     1  // Copyright 2018 The WPT Dashboard Project. All rights reserved.
     2  // Use of this source code is governed by a BSD-style license that can be
     3  // found in the LICENSE file.
     4  
     5  package taskcluster
     6  
     7  import "github.com/web-platform-tests/wpt.fyi/shared"
     8  
     9  // RegisterRoutes adds route handlers for webhooks.
    10  func RegisterRoutes() {
    11  	// GitHub webhook for responding to status updates from Taskcluster
    12  	shared.AddRoute("/api/webhook/taskcluster", "api-webhook-taskcluster", tcStatusWebhookHandler)
    13  }