You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sly-Little-Fox 4a06cb22cb
a
7 months ago
.gitignore a 7 months ago
LICENSE Initial commit 7 months ago
README.md Update 'README.md' 7 months ago
go.mod works, also json 🇹🇷 7 months ago
go.sum works, also json 🇹🇷 7 months ago
main.go a 7 months ago

README.md

canvas-server

A simple canvas server written in Golang and using BadgerDB JSON 🚎.
someone please explain me why there is a turkey flag in commit names
provide admin token for /admin/reset with ?token= and the ADMIN_TOKEN env variable
/ - gives the image in png format
/place (PUT) - lets you place pixels (see code for body format xd)
/admin/reset (POST) - saves the canvas to ./saves/[UTC time].json and resets it