October 2019
Intermediate to advanced
434 pages
11h 54m
English
Any real service is likely going to support multiple routes, so let's add an additional route to our service.
// route_agenda.ktconst val AGENDA_JSON_SAMPLE = """{ "days":[ { "title":"Day 1", "date":"6\/4\/20", "sessions":[ { "id":0, "title":"Kotlin 101", "speaker":"John Smith" }, { "id":1, "title":"Kotlin 201", "speaker":"Jane Smith" } ] }, ... ]}"""
fun Route.agenda() = get("/agenda" ...
Read now
Unlock full access