{"id":19020278,"url":"https://github.com/trailsjs/trailpack-controller","last_synced_at":"2026-04-28T07:30:21.604Z","repository":{"id":69884461,"uuid":"62212371","full_name":"trailsjs/trailpack-controller","owner":"trailsjs","description":":globe_with_meridians: Controller base class for Trailpacks","archived":false,"fork":false,"pushed_at":"2016-08-15T12:34:50.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-02T00:25:46.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/trailsjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-06-29T09:11:56.000Z","updated_at":"2024-03-07T07:34:28.000Z","dependencies_parsed_at":"2023-02-28T18:46:19.923Z","dependency_job_id":null,"html_url":"https://github.com/trailsjs/trailpack-controller","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailsjs","download_url":"https://codeload.github.com/trailsjs/trailpack-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240064610,"owners_count":19742347,"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-11-08T20:16:26.857Z","updated_at":"2026-04-28T07:30:19.941Z","avatar_url":"https://github.com/trailsjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailpack-controller\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build status][ci-image]][ci-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Code Climate][codeclimate-image]][codeclimate-url]\n[![Follow @trailsjs on Twitter][twitter-image]][twitter-url]\n\nTrailpack controller Class. Exposes Trails Application resources to the class instances.\n \nTrailpack controllers should extend this class, it allow you to use hapi API interface for all webserver compatible \n(currently trailpack-hapi and trailpack-express).  \n\nFor basic Trails controllers you should use [trails-controller](https://github.com/trailsjs/trails-controller).\n\n## Usage\n\n```js\nconst Controller = require('trailpack-controller')\n\nclass MyController extends Controller {\n  controllerMethod (request, reply) {\n    // ...\n  }\n}\n```\n\n#### Install\n\n## License\n[MIT](https://github.com/trailsjs/trails/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/trailpack-controller.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/trailpack-controller\n[ci-image]: https://img.shields.io/travis/trailsjs/trailpack-controller/master.svg?style=flat-square\n[ci-url]: https://travis-ci.org/trailsjs/trailpack-controller\n[daviddm-image]: http://img.shields.io/david/trailsjs/trailpack-controller.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/trailsjs/trailpack-controller\n[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trailpack-controller.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/trailsjs/trailpack-controller\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/trailsjs/trailpack-controller\n[twitter-image]: https://img.shields.io/twitter/follow/trailsjs.svg?style=social\n[twitter-url]: https://twitter.com/trailsjs\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailsjs%2Ftrailpack-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-controller/lists"}