github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/webapp/processor.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 webapp
     6  
     7  import (
     8  	"net/http"
     9  )
    10  
    11  // processorStatusHandler handles GET requests to /processor
    12  func processorStatusHandler(w http.ResponseWriter, r *http.Request) {
    13  	if r.Method != http.MethodGet {
    14  		http.Error(w, "Only GET is supported.", http.StatusMethodNotAllowed)
    15  		return
    16  	}
    17  
    18  	RenderTemplate(w, r, "processor.html", nil)
    19  }