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

bitkid

04/29/2019, 9:59 PM
it just seems to ignore it
meaning i expect it to return Unauthorized in the test but it doesn't. whereas when i dont use the locations api it works
k

Kevin Schmeichel

04/29/2019, 10:23 PM
This is basically what I was trying to get at with my last post - it seems like a bad idea to have 2 different ways to do routing...
b

bitkid

04/29/2019, 10:42 PM
i always thought the locations api is just some annotation sugar + json mapping over the normal routing
k

Kevin Schmeichel

04/29/2019, 10:55 PM
oh, maybe - I haven't looked that closely at the code. as a newcomer to ktor, it does seem a bit confusing though, having 2 separate services to do basically the same thing.
b

bitkid

04/29/2019, 11:09 PM
and it can totally be that my example is wrong and it does actually work 😉
k

Kevin Schmeichel

04/30/2019, 12:07 AM
please post if you find out either way.
4 Views