qa: New service to handle QA testing by students

This commit is contained in:
nemunaire 2020-09-08 12:50:41 +02:00
commit a237936feb
37 changed files with 1476 additions and 0 deletions

13
qa/api/version.go Normal file
View file

@ -0,0 +1,13 @@
package api
import (
"github.com/julienschmidt/httprouter"
)
func init() {
router.GET("/api/version", apiHandler(showVersion))
}
func showVersion(u QAUser, _ httprouter.Params, body []byte) (interface{}, error) {
return map[string]interface{}{"version": 0.1, "auth": u}, nil
}