{"id":26348256,"url":"https://github.com/noel-archive/ktor-routing","last_synced_at":"2025-03-16T08:14:21.878Z","repository":{"id":37000532,"uuid":"486095786","full_name":"noel-archive/ktor-routing","owner":"noel-archive","description":"📭 Extension to Ktor’s routing system to add object oriented routing and much more. 💜","archived":true,"fork":false,"pushed_at":"2023-04-12T18:53:05.000Z","size":1812,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T08:14:18.730Z","etag":null,"topics":["kotlin","ktor","ktor-routing","ktor-server"],"latest_commit_sha":null,"homepage":"https://ktor.noelware.org","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noel-archive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["auguwu","Noelware"],"custom":["https://paypal.me/auguwu","https://noelware.org"]}},"created_at":"2022-04-27T07:47:20.000Z","updated_at":"2023-08-29T21:50:36.000Z","dependencies_parsed_at":"2023-02-19T02:15:31.639Z","dependency_job_id":"c1383c9d-6dcf-42c8-a8dd-554e14bee74e","html_url":"https://github.com/noel-archive/ktor-routing","commit_stats":null,"previous_names":["noel-archive/ktor-routing"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noel-archive%2Fktor-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noel-archive%2Fktor-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noel-archive%2Fktor-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noel-archive%2Fktor-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noel-archive","download_url":"https://codeload.github.com/noel-archive/ktor-routing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841216,"owners_count":20356446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","ktor","ktor-routing","ktor-server"],"created_at":"2025-03-16T08:14:20.735Z","updated_at":"2025-03-16T08:14:21.872Z","avatar_url":"https://github.com/noel-archive.png","language":"Kotlin","funding_links":["https://github.com/sponsors/auguwu","https://github.com/sponsors/Noelware","https://paypal.me/auguwu","https://noelware.org"],"categories":[],"sub_categories":[],"readme":"# 📭 Ktor Routing Extensions\n\u003e *Extension to Ktor’s routing system to add object-oriented routing and much more. 💜*\n\n## Why?\nThis extension library was created to reduce the amount of boilerplate to install routing to Noelware's products and services.\nWe use **Ktor** for our major platforms like [charted-server](https://github.com/charted-dev/charted) and much more.\n\n## Example\n```kotlin\n@Serializable\nclass RequestBody(val id: Int, val email: String)\n\nclass MyEndpoint: AbstractEndpoint() {\n  init {\n    install(SomeRoutingPlugin) {\n      // type-safe config\n    }\n  }\n\n  @Get\n  suspend fun get(call: ApplicationCall) {\n    call.respond(HttpStatusCode.OK, \"Hello, world!\")\n  }\n  \n  @Post\n  suspend fun post(call: ApplicationCall) {\n    val body by call.body\u003cRequestBody\u003e()\n    call.respond(HttpStatusCode.OK, \"Hello user with ID ${body.id} and email ${body.email}!\")\n  }\n}\n\nsuspend fun main(args: Array\u003cString\u003e) {\n  val server = embeddedServer(Netty, port = 9090) {\n    module {\n      // We need this to be enabled. :(\n      routing {}\n      \n      install(NoelKtorRouting) {\n        loader(ReflectionBasedLoader(\"org.noelware.ktor.tests\"))\n        endpoints += MyEndpoint()\n      }\n    }\n  }\n}\n```\n\n## License\n**ktor-routing** is released under the **MIT License** with love (๑・ω-)～♥” by Noelware. 💜\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoel-archive%2Fktor-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoel-archive%2Fktor-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoel-archive%2Fktor-routing/lists"}