token-validator: Restrict grades API access to owner
All checks were successful
continuous-integration/drone/push Build is passing

Thanks-To: Elie Brami <elie.brami@epita.fr>
This commit is contained in:
nemunaire 2022-04-21 13:50:16 +02:00
parent 3613da33cf
commit 3971ab3f20

View File

@ -7,7 +7,7 @@ import (
)
func init() {
router.GET("/api/grades/", apiHandler(computeGrades))
router.GET("/api/grades/", remoteValidatorHandler(apiHandler(computeGrades)))
}
func computeGrades(_ httprouter.Params, _ []byte) (interface{}, error) {