-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Contributor state to API (#1731)
* Created contributors file for OpenDota contributors to flag their profile if desired. Added it to the API response for /players/:id. * revert package-lock changes. Add Albert + Howard to CONTRIBUTORS file. Update contributor documentation for OpenAPI definition. Minor tweak to logic in contributor injection into player profile. * Add null check for playerData * update contributors file to use github username as comment rather than random names
- Loading branch information
1 parent
82d158e
commit f65401e
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
This file is for contributors to OpenDota to add their DOTA friend codes (AKA SteamId3). | ||
Currently this will cause the /players/:id endpoint to return is_contributor = true for your profile | ||
*/ | ||
|
||
module.exports = { | ||
88367253: {}, // howardchung | ||
102344608: {}, // albertcui | ||
9977887: {}, // gu3st | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters