{"id":15098194,"url":"https://github.com/nodecloud/koa-route-mapper","last_synced_at":"2026-01-06T15:41:25.658Z","repository":{"id":143867459,"uuid":"111629789","full_name":"nodecloud/koa-route-mapper","owner":"nodecloud","description":"koa-routes-map","archived":false,"fork":false,"pushed_at":"2017-11-23T11:32:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T05:57:46.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodecloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-22T03:06:08.000Z","updated_at":"2017-11-22T03:40:31.000Z","dependencies_parsed_at":"2024-01-31T23:45:15.343Z","dependency_job_id":null,"html_url":"https://github.com/nodecloud/koa-route-mapper","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"8e824526289d6473f7c1ad9b1f7ca368c761f511"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecloud%2Fkoa-route-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecloud%2Fkoa-route-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecloud%2Fkoa-route-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecloud%2Fkoa-route-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodecloud","download_url":"https://codeload.github.com/nodecloud/koa-route-mapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245854409,"owners_count":20683348,"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":[],"created_at":"2024-09-25T16:44:13.868Z","updated_at":"2026-01-06T15:41:25.631Z","avatar_url":"https://github.com/nodecloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-route-mapper\n\nThis middleware will set a /mappers route as default for getting the URLs.\n\n## Usage\n\n``` javascript\nimport Koa from 'koa';\nimport KoaRouter from 'koa-router';\nimport KoaMapper from 'koa-route-mapper';\n\nlet app = new Koa();\nconst router = new KoaRouter();\n\napp.use(KoaMapper('/mappers', [router]));\n```\n\nWhen visit the /mappers api, it will response:\n\n```json\n[\n  {\n    \"path\": \"/v1/groups/\",\n    \"methods\": [\n      \"HEAD\",\n      \"GET\"\n    ],\n    \"function\": [\n      \"getGroups\"\n    ]\n  },\n  {\n    \"path\": \"/v1/groups/:groupId/members\",\n    \"methods\": [\n      \"HEAD\",\n      \"GET\"\n    ],\n    \"function\": [\n      \"getGroupMembers\"\n    ]\n  }\n]\n```\n\n## API\n\n### KoaMapper(url, routers)\n\n* url  default is /metrics.\n* routers: array of router instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecloud%2Fkoa-route-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodecloud%2Fkoa-route-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecloud%2Fkoa-route-mapper/lists"}