Added support for PUT, GET, DELETE images. Current we're only able to do this for user images. All images are stored in the folder pointed to by your IMAGE_DIR environment variable (see README).
:traffic_light: Concerns
Currently we don't point to these images with any extra columns in the users table. Perhaps we should. Not doing so makes the code simpler and it prevents situations where the information in the DB conflicts with the actual files in the IMAGE_DIR, so I think this is okay for now.
:mag: Testing Instructions
make test. You can also use Postman to upload, retrieve, and delete images.
:tickets: Ticket(s): Closes #63
:construction_worker: Changes
IMAGE_DIR
environment variable (see README).:traffic_light: Concerns
Currently we don't point to these images with any extra columns in the
users
table. Perhaps we should. Not doing so makes the code simpler and it prevents situations where the information in the DB conflicts with the actual files in theIMAGE_DIR
, so I think this is okay for now.:mag: Testing Instructions
make test
. You can also use Postman to upload, retrieve, and delete images.