I realised that having the image folder configurable in the project may disjoin the database metadata with the filesystem.
For example: A user may spin up the admin-app with the image folder set to ./media, then add some images through the post endpoints. After closing the app, the user then opens the admin-app again with the image folder set to ./images - This would break the image {GET,POST,DELETE} functionality.
I realised that having the image folder configurable in the project may disjoin the database metadata with the filesystem.
For example: A user may spin up the
admin-app
with the image folder set to./media
, then add some images through the post endpoints. After closing the app, the user then opens theadmin-app
again with the image folder set to./images
- This would break the image{GET,POST,DELETE}
functionality.