yaseenkadir / etchedjournal

An encrypted journal where entries are etched in stone.
Apache License 2.0
0 stars 0 forks source link

Remove nested URL hierarchy #48

Closed yaseenkadir closed 5 years ago

yaseenkadir commented 5 years ago

I've started working on #18 and I the API url structure became

/api/v1/journals/01234567-89ab-cdef-0123-456789abcdef/entries/01234567-89ab-cdef-0123-456789abcdef/etches/01234567-89ab-cdef-0123-456789abcdef

Yeah nah. Not a fan of that.

We'll separate the urls so it's a little cleaner. Because that straight up looks weird. Users should only ever see

etchedjournal.com/entries/01234567-89ab-cdef-0123-456789abcdef
etchedjournal.com/journals/01234567-89ab-cdef-0123-456789abcdef

# Not
etched.journal.com/journals/01234567-89ab-cdef-0123-456789abcdef/entries/01234567-89ab-cdef-0123-456789abcdef
# because that also sucks