{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/json-server/issues/158","labels_url":"https://api.github.com/repos/typicode/json-server/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/typicode/json-server/issues/158/comments","events_url":"https://api.github.com/repos/typicode/json-server/issues/158/events","html_url":"https://github.com/typicode/json-server/issues/158","id":97689143,"number":158,"title":"configurable static file direcotry request","user":{"login":"kuitos","id":5206843,"avatar_url":"https://avatars.githubusercontent.com/u/5206843?v=3","gravatar_id":"","url":"https://api.github.com/users/kuitos","html_url":"https://github.com/kuitos","followers_url":"https://api.github.com/users/kuitos/followers","following_url":"https://api.github.com/users/kuitos/following{/other_user}","gists_url":"https://api.github.com/users/kuitos/gists{/gist_id}","starred_url":"https://api.github.com/users/kuitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuitos/subscriptions","organizations_url":"https://api.github.com/users/kuitos/orgs","repos_url":"https://api.github.com/users/kuitos/repos","events_url":"https://api.github.com/users/kuitos/events{/privacy}","received_events_url":"https://api.github.com/users/kuitos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T12:07:24Z","updated_at":"2015-07-30T14:36:22Z","closed_at":null,"body":"can u add a feature that we can configure the static file directory but not default 'public' by argv?  \r\nlike this  \r\n```bash\r\njson-server --watch db.json --static /src\r\n```"},"comment":{"url":"https://api.github.com/repos/typicode/json-server/issues/comments/126350114","html_url":"https://github.com/typicode/json-server/issues/158#issuecomment-126350114","issue_url":"https://api.github.com/repos/typicode/json-server/issues/158","id":126350114,"user":{"login":"typicode","id":5502029,"avatar_url":"https://avatars.githubusercontent.com/u/5502029?v=3","gravatar_id":"","url":"https://api.github.com/users/typicode","html_url":"https://github.com/typicode","followers_url":"https://api.github.com/users/typicode/followers","following_url":"https://api.github.com/users/typicode/following{/other_user}","gists_url":"https://api.github.com/users/typicode/gists{/gist_id}","starred_url":"https://api.github.com/users/typicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typicode/subscriptions","organizations_url":"https://api.github.com/users/typicode/orgs","repos_url":"https://api.github.com/users/typicode/repos","events_url":"https://api.github.com/users/typicode/events{/privacy}","received_events_url":"https://api.github.com/users/typicode/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T14:36:22Z","updated_at":"2015-07-30T14:36:22Z","body":"Hi @kuitos \r\n\r\nNo plan to add one to the CLI right now. But you have some workarounds that you may already know.\r\n\r\nYou can symlink `public` to `src` if you're on OS X/Linux.\r\nOr you can use the project as a module and add this:\r\n\r\n```javascript\r\n// ...\r\nserver = jsonServer.create()\r\nserver.static('src')\r\n// ...\r\n```\r\n\r\nBy the way, if you have the time, I would be interested to understand your use-case and why you use `src` or can't use another directory? As far as I know, it's pretty common to have a `public` folder.\r\n"}}