elliotttate / beatsaver-laravel

Rewrite of beatsaver.com (https://github.com/beatsaver/beatsaver) using the laravel framework
https://discord.gg/8B44zqM
MIT License
39 stars 19 forks source link

Steam ID based voting #79

Closed luludotdev closed 5 years ago

luludotdev commented 5 years ago

Unlocks the votes table to allow arbitrary user_id keys. This allows us to use Steam IDs for voting.

There's a new endpoint /api/songs/voteById/{key}/{direction} This functions similar to the current vote endpoint with a few key differences:

Form Body

Key Type Description
id string Steam ID
ticket string Steam Authentication Ticket

The ticket will be validated on the server and if the Steam IDs match, a vote will be counted.