I have an images
table with a nsfw
flag.
What's the best way to add nsfw
and sfw
to the URL?
For example,
if I have an image with an id=1 and nsfw flag is true, I want the URL to be /images/nsfw/1
if I have an image with an id=2 and nsfw flag is false, I want the URL to be /images/sfw/2