At this point, I think our application is pretty awesome, but there's something missing that's nagging me. During testing, I've been creating all kinds of new images and uploading them to the application but it's starting to get a bit cluttered and messy. It dawned on me that the most obvious thing that's missing is the ability to remove an image!
In reality, I left out this feature on purpose so that we could use this opportunity to incorporate a completely new set of functionality that touches almost every area of the application. This seemingly simple addition is actually going to require the following changes:
routes.jsto include a new route to handle
controllers/image.jsto include a new function for the route
This should not only remove the image from the database, but also delete the file and all related comments