token-validator: Restrict grades API access to owner
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Thanks-To: Elie Brami <elie.brami@epita.fr>
This commit is contained in:
parent
3613da33cf
commit
3971ab3f20
@ -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) {
|
||||
|
Reference in New Issue
Block a user