https://kotlinlang.org logo
#ktor
Title
# ktor
l

Levi

12/12/2023, 3:45 PM
Curious if there any conventions around naming `Route`s. E.g., do folks put
post
or
get
in the name of a
Route
, e.g.
postUser
?
s

sindrenm

12/12/2023, 4:20 PM
Not sure about conventions, and this is coming from a client's perspective, but we at least use HTTP verbs in our API Service functions, e.g.
postLogin()
. That's mainly just to make it quick to find when communicating with back-end Devs. Our repositories would be different.
👍 1
l

Levi

12/12/2023, 4:44 PM
Yeah, there's definitely some sense in it
One thing's for sure: someone will complain no matter what convention I go with lmao
mood 2 1
s

sindrenm

12/12/2023, 4:51 PM
For sure! 😅