This introduces "Images" to the database, as well as an upload page only accessible to admins, from which you can send images (although in reality, it's any file, you could use a library to check file type)
Images get stored and can get accessed at any point by any user through /images/{id}, the upload function returns the id (alongside other file-related stuff)
I doubt this is perfect, so please lemme know if there's anything I can do better!
This introduces "Images" to the database, as well as an
upload
page only accessible to admins, from which you can send images (although in reality, it's any file, you could use a library to check file type) Images get stored and can get accessed at any point by any user through/images/{id}
, the upload function returns the id (alongside other file-related stuff)I doubt this is perfect, so please lemme know if there's anything I can do better!