Стефан Јовановић
01/14/2022, 6:17 PMBig Chungus
01/14/2022, 6:21 PMСтефан Јовановић
01/14/2022, 6:37 PMBig Chungus
01/14/2022, 6:38 PMСтефан Јовановић
01/14/2022, 6:41 PMBig Chungus
01/14/2022, 6:41 PMСтефан Јовановић
01/14/2022, 6:43 PMBig Chungus
01/14/2022, 7:11 PMСтефан Јовановић
01/14/2022, 8:53 PMBig Chungus
01/14/2022, 8:55 PMСтефан Јовановић
01/14/2022, 8:58 PMBig Chungus
01/14/2022, 8:58 PMСтефан Јовановић
01/14/2022, 8:59 PMBig Chungus
01/14/2022, 9:00 PMСтефан Јовановић
01/14/2022, 9:01 PMBig Chungus
01/14/2022, 9:06 PMclient
module so that it could be embedded into server
module output (fat-jar)
• This creates a run task supporting KTOR's hot-reload for local development
• This adds js bundle output file location is added to the classpath, so that they could be picked up from outside the jar when running in dev-mode (better hot-reload)
• This is where JS output is actually embedded into the server fat-jar
• And finally, here both possible places for JS static resources are registered as static resources that ktor will be serving
• Oh and this configures the actual hot-reloadjava -jar my-app.jar
, serving both, REST endpoints as well as your frontend.Стефан Јовановић
01/14/2022, 9:36 PMBig Chungus
01/14/2022, 9:37 PMmartmists
01/14/2022, 9:41 PMСтефан Јовановић
01/14/2022, 9:48 PMBig Chungus
01/14/2022, 9:50 PMDavid Herman
01/16/2022, 12:02 AM@Api fun login(ctx: ApiContext)
, I automatically generate <http://yoursite.com/api/login|yoursite.com/api/login>
which can take query parameters and handle post/get/update/etc. verbs.