mrjimin
11/13/2026, 3:49 PMfun Application.module() {}? What if Di is removed? I'm curious about what kind of architecture and structure are typically used in real-world or medium-scale projects. I decided to switch because I felt that using Koin was making the middle layer too messy.Amir Golmoradi
11/13/2026, 3:54 PMBruce Hamilton
11/13/2026, 4:27 PMmrjimin
11/14/2026, 10:32 AMmrjimin
11/14/2026, 10:32 AMBruce Hamilton
11/14/2026, 10:43 AMmrjimin
11/14/2026, 12:24 PMBruce Hamilton
11/14/2026, 12:40 PMdependencies { provide {} } or the application.dependencies property. If youāre just getting started with Ktor you can just wire things up manually to get a feel for the routing and the different plugins before you you introduce DI though - itās not like Spring where DI is foundational knowledge, itās just an extra optional feature if you need dynamic injectionmrjimin
11/14/2026, 12:43 PMBruce Hamilton
11/14/2026, 12:50 PMmrjimin
11/14/2026, 12:51 PMBruce Hamilton
11/14/2026, 12:54 PMmrjimin
11/14/2026, 12:57 PMBruce Hamilton
11/14/2026, 1:06 PMmrjimin
11/14/2026, 2:48 PMType-safe instead of the classic method in the Auth section, it turns out you have to pass the constructor itself...
authenticateWith(auth), right? I had to use this... The classic version was authenticate(string). So, would it be enough to just create a function that returns the auth constructor and use it everywhere...? Or how should I use it? I used to write authenticate(string), but this is the first time Iāve seen the constructor itself. Which one should I use? Classic? Or type-safe?Amir Golmoradi
11/14/2026, 3:08 PMmrjimin
11/14/2026, 6:18 PMrouting section from jwtRoutes and jwtRoutesWithTypeSafe and use it in a separate class, such as AuthRoute. Is there a way to do that?
thx š