Changeset 22367db for pages/api/poker


Ignore:
Timestamp:
07/19/22 19:38:51 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
41d3f60
Parents:
faff334
Message:

Added authentication with google

Location:
pages/api/poker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pages/api/poker/gameStates.js

    rfaff334 r22367db  
    3333    id: '',
    3434    table: '',
    35     credits: 0,
     35    credits: -1,
    3636    status: '_1_just_entered',
    3737    displayName: '',
     
    7676            table: tableId,
    7777            username: username,
    78             credits: 0,
     78            credits: -1,
    7979            status: '_1_just_entered',
    8080            displayName: playerName,
  • pages/api/poker/index.js

    rfaff334 r22367db  
    212212                            table: req.query.tableId,
    213213                            username: req.query.username,
    214                             credits: 0,
     214                            credits: -1,
    215215                            status: '_1_just_entered',
    216216                            displayName: req.query.displayName,
  • pages/api/poker/tableSpecific.js

    rfaff334 r22367db  
    210210            player.wonAmount = winnings;
    211211
     212            table.finished = new Date().toGMTString();
    212213            saveGameInHistory('poker', table, player.username)
    213214        })
Note: See TracChangeset for help on using the changeset viewer.