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

     1  // Copyright 218 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 query
     6  
     7  import "github.com/web-platform-tests/wpt.fyi/shared"
     8  
     9  // RegisterRoutes binds query API handlers to URL routes.
    10  func RegisterRoutes() {
    11  	// API endpoint for searching results over given runs.
    12  	shared.AddRoute(
    13  		"/api/search",
    14  		"api-search",
    15  		shared.WrapPermissiveCORS(apiSearchHandler))
    16  }