github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/receiver/routes.go (about) 1 // Copyright 2019 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 receiver 6 7 import "github.com/web-platform-tests/wpt.fyi/shared" 8 9 // RegisterRoutes adds all the result receiver route handlers. 10 func RegisterRoutes() { 11 // PROTECTED API endpoint for receiving test results (wptreport) from runners. 12 // This API is authenticated. Runners have credentials. 13 shared.AddRoute("/api/results/upload", "api-results-upload", apiResultsUploadHandler) 14 15 // PRIVATE API endpoint for creating a test run in Datastore. 16 // This API is authenticated. Only this AppEngine project has the credential. 17 shared.AddRoute("/api/results/create", "api-results-create", apiResultsCreateHandler) 18 19 // PRIVATE API endpoint for updating the status of a pending test run 20 shared.AddRoute("/api/status/{id:[0-9]+}", "api-pending-test-run-update", apiPendingTestRunUpdateHandler) 21 }