{"id":19020222,"url":"https://github.com/trailsjs/trails-controller","last_synced_at":"2026-04-28T07:30:18.875Z","repository":{"id":57378813,"uuid":"49358351","full_name":"trailsjs/trails-controller","owner":"trailsjs","description":":globe_with_meridians: Trails Controller Class","archived":false,"fork":false,"pushed_at":"2016-12-22T01:41:31.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-12T22:39:50.431Z","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}},"created_at":"2016-01-10T07:52:59.000Z","updated_at":"2024-03-07T07:34:02.000Z","dependencies_parsed_at":"2022-09-02T20:21:48.280Z","dependency_job_id":null,"html_url":"https://github.com/trailsjs/trails-controller","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrails-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrails-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrails-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrails-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailsjs","download_url":"https://codeload.github.com/trailsjs/trails-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240064607,"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:11.368Z","updated_at":"2026-04-28T07:30:18.808Z","avatar_url":"https://github.com/trailsjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trails-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\n### Note: This module is deprecated in Trails v2. It will be merged into [trailsjs/trails](https://github.com/trailsjs/trails) in v3.\n\nTrails Controller Class. Exposes Trails Application resources to the class\ninstances. Controllers should extend this Class.\n\n## Usage\n\n```js\nconst Controller = require('trails-controller')\n\nclass MyController extends Controller {\n  controllerMethod () {\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/trails-controller.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/trails-controller\n[ci-image]: https://img.shields.io/travis/trailsjs/trails-controller/master.svg?style=flat-square\n[ci-url]: https://travis-ci.org/trailsjs/trails-controller\n[daviddm-image]: http://img.shields.io/david/trailsjs/trails-controller.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/trailsjs/trails-controller\n[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trails-controller.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/trailsjs/trails-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/trails\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%2Ftrails-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailsjs%2Ftrails-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrails-controller/lists"}