{"action":"opened","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/6677","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/6677/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/6677/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/6677/events","html_url":"https://github.com/TryGhost/Ghost/issues/6677","id":145824819,"number":6677,"title":"Ghost as NPM: Rewrite Router","user":{"login":"kirkas","id":1159783,"avatar_url":"https://avatars.githubusercontent.com/u/1159783?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkas","html_url":"https://github.com/kirkas","followers_url":"https://api.github.com/users/kirkas/followers","following_url":"https://api.github.com/users/kirkas/following{/other_user}","gists_url":"https://api.github.com/users/kirkas/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkas/subscriptions","organizations_url":"https://api.github.com/users/kirkas/orgs","repos_url":"https://api.github.com/users/kirkas/repos","events_url":"https://api.github.com/users/kirkas/events{/privacy}","received_events_url":"https://api.github.com/users/kirkas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T22:46:06Z","updated_at":"2016-04-04T22:46:06Z","closed_at":null,"body":"I'm using Ghost for my new blog. I use it as a [NPM Module](https://github.com/TryGhost/Ghost/wiki/Using-Ghost-as-an-npm-module).\r\n\r\nMy issue is that I want to change the way router works.\r\n\r\ne.g: I want `blog.com/tag/something` to actually read as `blog.com/collection/something`.\r\n\r\nCan I do that through `ghostServer.rootApp`?\r\n\r\nIndex.js:\r\n\r\n    var ghost = require('ghost'),\r\n        express = require('express'),\r\n        path = require('path'),\r\n        parentApp = express();\r\n    \r\n    ghost({\r\n      config: path.join(__dirname, 'config.js')\r\n    }).then(function (ghostServer) {\r\n        parentApp.use(ghostServer.config.paths.subdir, ghostServer.rootApp);\r\n        ghostServer.start(parentApp);\r\n    });\r\n\r\nSpec:\r\n\r\n- Ghost Version: 0.7.8\r\n- Node Version: v4.4.2\r\n- NPM Version: 3.8.5\r\n- Browser/OS: All\r\n- Database: MySql"}}