rename endpoint variable

use renamed endpoints variable in oauth model
Merge pull request #42 from joeyw/patch-1

rename endpoint variable