incredibleMachines / 30PP

Player and Uploader App for 30 Park Place
0 stars 0 forks source link

Merging in Front End Changes and API Functionality into Master for Additional Socket Control #9

Closed piuggi closed 10 years ago

piuggi commented 10 years ago

Api routes are added for support to signal ui.

Make sure you update your Databases! You'll need to make each event anim_type to be either sales or ambient from here out, below examples on how to migrate. Or you can remove and use the gui again.

How to Update Examples in Terminal

update single:

$ mongo 30_PP
$ db.events.update({_id:ObjectId('your_id')},{$set:{anim_type:'sales'}},true,true)
$ db.events.update({_id:ObjectId('your_other_id')},{$set:{anim_type:'ambient'}},true,true)

update all:

$ mongo 30_PP
$ db.events.update({},{$set:{anim_type:'sales'}},true,true)

API List includes:

/api /api/play/sales /api/play/ambient /api/play/:slug /api/control/end /api/control/pause /api/control/resume