Fix documented API annotation

This commit is contained in:
2023-02-07 05:13:11 +00:00
parent 296b32a389
commit e48d7b1071

View File

@@ -78,15 +78,15 @@ func (r *Router) GetHandler() http.Handler {
//
// - Retrieve all superheroes with encrypted identities:
//
// GET /superheroes?encode=deesee
// GET /superheroes?encrypted=true
//
// - Retrieve superheroes that match given superpower(s)
//
// GET /superheroes?powers=flight,super-strength
// GET /superheroes?superpowers=flight,super-strength
//
// - Retrieve superheroes that match given superpower(s) with encrypted identities
//
// GET /superheroes?powers=flight,super-strength&encode=deesee
// GET /superheroes?superpowers=flight,super-strength&encrypted=true
func (r *Router) GetSuperHeroes(w http.ResponseWriter, req *http.Request) {
var (
// Resulting