{"id":15824283,"url":"https://github.com/will123195/express-pages","last_synced_at":"2025-04-01T08:52:58.178Z","repository":{"id":34527990,"uuid":"38470660","full_name":"will123195/express-pages","owner":"will123195","description":"Automatic routing for express","archived":false,"fork":false,"pushed_at":"2015-08-04T21:53:26.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-06T08:41:20.608Z","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/will123195.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}},"created_at":"2015-07-03T03:48:49.000Z","updated_at":"2015-07-03T03:49:19.000Z","dependencies_parsed_at":"2022-09-15T04:12:25.594Z","dependency_job_id":null,"html_url":"https://github.com/will123195/express-pages","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will123195%2Fexpress-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will123195%2Fexpress-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will123195%2Fexpress-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will123195%2Fexpress-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will123195","download_url":"https://codeload.github.com/will123195/express-pages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246612494,"owners_count":20805354,"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-10-05T08:41:19.225Z","updated_at":"2025-04-01T08:52:58.157Z","avatar_url":"https://github.com/will123195.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-pages\n\nAutomatic routing for express\n\n## Install\n\n```\nnpm install express\nnpm install express-pages\n```\n\n## Usage\n\n#### index.js\n```js\nvar express = require('express')\nvar pages = require('express-pages')\nvar app = express()\n\napp.set('port', (process.env.PORT || 5000))\n\napp.use('/v1', pages({\n  dir: './api',\n  ext: '.js',\n  homepage: '/home',\n  helpers: {\n    beep: function () {\n      return 'boop'\n    }\n  }\n})\n\napp.listen(app.get('port'), function() {\n  console.log([\n    'Running: http://localhost:' + app.get('port'),\n    'NODE_ENV: ' + process.env.NODE_ENV,\n  ].join('\\n'))\n})\n```\n\n#### ./api/beep.js\n```js\n//\n// /v1/beep\n//\nmodule.exports = function () {\n  this.send({\n    beep: this.beep()\n  })\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill123195%2Fexpress-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill123195%2Fexpress-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill123195%2Fexpress-pages/lists"}