notlion/YASE — pull request #2 by quilime (2012-08-07 06:22:29+00:00)
Title: Added ability to save shaders with MYSQL

Added the following endpoints:

/get/
gets shaders, sorted by date with limit and offset url params
example: /get/?limit=10&offset=4

/get/:short_id
get shader by short_id
example: /get/4f

/count
get total count of shaders in db

/save
saves shader to DB
@Param: array r (rotation)
@Param: float d (distance)
@Param: string z (shader lzma)

When "SaveToDB" is clicked, the current shader+params are posted to the db. View the status of the post in the console.