{"action":"created","comment":{"url":"https://api.github.com/repos/pallets/flask/pulls/comments/244230288","pull_request_review_id":188182610,"id":244230288,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDIzMDI4OA==","diff_hunk":"@@ -0,0 +1,24 @@\n+Single-Page Applications\n+========================\n+\n+Flask can be used to serve Single-Page Applications (SPA) by placing static\n+files produced by your frontend framework in a subfolder inside of your\n+project. You will also need to create a catch-all endpoint that routes all\n+requests to your SPA.\n+\n+The following example demostrates how to serve an SPA along with an API::","path":"docs/patterns/singlepageapplications.rst","position":9,"original_position":9,"commit_id":"2bd89c378c560a912d3181e6bc22e83e5c10537b","original_commit_id":"2bd89c378c560a912d3181e6bc22e83e5c10537b","user":{"login":"ExplodingCabbage","id":2358339,"node_id":"MDQ6VXNlcjIzNTgzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/2358339?v=4","gravatar_id":"","url":"https://api.github.com/users/ExplodingCabbage","html_url":"https://github.com/ExplodingCabbage","followers_url":"https://api.github.com/users/ExplodingCabbage/followers","following_url":"https://api.github.com/users/ExplodingCabbage/following{/other_user}","gists_url":"https://api.github.com/users/ExplodingCabbage/gists{/gist_id}","starred_url":"https://api.github.com/users/ExplodingCabbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExplodingCabbage/subscriptions","organizations_url":"https://api.github.com/users/ExplodingCabbage/orgs","repos_url":"https://api.github.com/users/ExplodingCabbage/repos","events_url":"https://api.github.com/users/ExplodingCabbage/events{/privacy}","received_events_url":"https://api.github.com/users/ExplodingCabbage/received_events","type":"User","site_admin":false},"body":"Typo: should be \"demonstrates\"","created_at":"2018-12-27T21:47:50Z","updated_at":"2018-12-27T21:47:51Z","html_url":"https://github.com/pallets/flask/pull/2996#discussion_r244230288","pull_request_url":"https://api.github.com/repos/pallets/flask/pulls/2996","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pallets/flask/pulls/comments/244230288"},"html":{"href":"https://github.com/pallets/flask/pull/2996#discussion_r244230288"},"pull_request":{"href":"https://api.github.com/repos/pallets/flask/pulls/2996"}}},"pull_request":{"url":"https://api.github.com/repos/pallets/flask/pulls/2996","id":230636565,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNjM2NTY1","html_url":"https://github.com/pallets/flask/pull/2996","diff_url":"https://github.com/pallets/flask/pull/2996.diff","patch_url":"https://github.com/pallets/flask/pull/2996.patch","issue_url":"https://api.github.com/repos/pallets/flask/issues/2996","number":2996,"state":"open","locked":false,"title":"[Docs] Add Single-Page Web Application pattern","user":{"login":"alysivji","id":4369343,"node_id":"MDQ6VXNlcjQzNjkzNDM=","avatar_url":"https://avatars0.githubusercontent.com/u/4369343?v=4","gravatar_id":"","url":"https://api.github.com/users/alysivji","html_url":"https://github.com/alysivji","followers_url":"https://api.github.com/users/alysivji/followers","following_url":"https://api.github.com/users/alysivji/following{/other_user}","gists_url":"https://api.github.com/users/alysivji/gists{/gist_id}","starred_url":"https://api.github.com/users/alysivji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysivji/subscriptions","organizations_url":"https://api.github.com/users/alysivji/orgs","repos_url":"https://api.github.com/users/alysivji/repos","events_url":"https://api.github.com/users/alysivji/events{/privacy}","received_events_url":"https://api.github.com/users/alysivji/received_events","type":"User","site_admin":false},"body":"Added instructions on how to serve single page applications as a Flask Pattern in the docs. I tried it out for React Router and everything works as expected.\r\n\r\nThanks to David for helping us get started at the PyCon Canada Sprints!","created_at":"2018-11-13T21:48:09Z","updated_at":"2018-12-27T21:47:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93cc9e8d5c5dd6b802afb1f6232988e946750b1c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pallets/flask/pulls/2996/commits","review_comments_url":"https://api.github.com/repos/pallets/flask/pulls/2996/comments","review_comment_url":"https://api.github.com/repos/pallets/flask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pallets/flask/issues/2996/comments","statuses_url":"https://api.github.com/repos/pallets/flask/statuses/2bd89c378c560a912d3181e6bc22e83e5c10537b","head":{"label":"alysivji:spa-docs","ref":"spa-docs","sha":"2bd89c378c560a912d3181e6bc22e83e5c10537b","user":{"login":"alysivji","id":4369343,"node_id":"MDQ6VXNlcjQzNjkzNDM=","avatar_url":"https://avatars0.githubusercontent.com/u/4369343?v=4","gravatar_id":"","url":"https://api.github.com/users/alysivji","html_url":"https://github.com/alysivji","followers_url":"https://api.github.com/users/alysivji/followers","following_url":"https://api.github.com/users/alysivji/following{/other_user}","gists_url":"https://api.github.com/users/alysivji/gists{/gist_id}","starred_url":"https://api.github.com/users/alysivji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysivji/subscriptions","organizations_url":"https://api.github.com/users/alysivji/orgs","repos_url":"https://api.github.com/users/alysivji/repos","events_url":"https://api.github.com/users/alysivji/events{/privacy}","received_events_url":"https://api.github.com/users/alysivji/received_events","type":"User","site_admin":false},"repo":{"id":157404111,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0MDQxMTE=","name":"flask","full_name":"alysivji/flask","private":false,"owner":{"login":"alysivji","id":4369343,"node_id":"MDQ6VXNlcjQzNjkzNDM=","avatar_url":"https://avatars0.githubusercontent.com/u/4369343?v=4","gravatar_id":"","url":"https://api.github.com/users/alysivji","html_url":"https://github.com/alysivji","followers_url":"https://api.github.com/users/alysivji/followers","following_url":"https://api.github.com/users/alysivji/following{/other_user}","gists_url":"https://api.github.com/users/alysivji/gists{/gist_id}","starred_url":"https://api.github.com/users/alysivji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysivji/subscriptions","organizations_url":"https://api.github.com/users/alysivji/orgs","repos_url":"https://api.github.com/users/alysivji/repos","events_url":"https://api.github.com/users/alysivji/events{/privacy}","received_events_url":"https://api.github.com/users/alysivji/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alysivji/flask","description":"The Python micro framework for building web applications.","fork":true,"url":"https://api.github.com/repos/alysivji/flask","forks_url":"https://api.github.com/repos/alysivji/flask/forks","keys_url":"https://api.github.com/repos/alysivji/flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alysivji/flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alysivji/flask/teams","hooks_url":"https://api.github.com/repos/alysivji/flask/hooks","issue_events_url":"https://api.github.com/repos/alysivji/flask/issues/events{/number}","events_url":"https://api.github.com/repos/alysivji/flask/events","assignees_url":"https://api.github.com/repos/alysivji/flask/assignees{/user}","branches_url":"https://api.github.com/repos/alysivji/flask/branches{/branch}","tags_url":"https://api.github.com/repos/alysivji/flask/tags","blobs_url":"https://api.github.com/repos/alysivji/flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alysivji/flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alysivji/flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/alysivji/flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alysivji/flask/statuses/{sha}","languages_url":"https://api.github.com/repos/alysivji/flask/languages","stargazers_url":"https://api.github.com/repos/alysivji/flask/stargazers","contributors_url":"https://api.github.com/repos/alysivji/flask/contributors","subscribers_url":"https://api.github.com/repos/alysivji/flask/subscribers","subscription_url":"https://api.github.com/repos/alysivji/flask/subscription","commits_url":"https://api.github.com/repos/alysivji/flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/alysivji/flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/alysivji/flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/alysivji/flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/alysivji/flask/contents/{+path}","compare_url":"https://api.github.com/repos/alysivji/flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alysivji/flask/merges","archive_url":"https://api.github.com/repos/alysivji/flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alysivji/flask/downloads","issues_url":"https://api.github.com/repos/alysivji/flask/issues{/number}","pulls_url":"https://api.github.com/repos/alysivji/flask/pulls{/number}","milestones_url":"https://api.github.com/repos/alysivji/flask/milestones{/number}","notifications_url":"https://api.github.com/repos/alysivji/flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alysivji/flask/labels{/name}","releases_url":"https://api.github.com/repos/alysivji/flask/releases{/id}","deployments_url":"https://api.github.com/repos/alysivji/flask/deployments","created_at":"2018-11-13T15:40:52Z","updated_at":"2018-11-13T15:40:56Z","pushed_at":"2018-11-13T21:42:06Z","git_url":"git://github.com/alysivji/flask.git","ssh_url":"git@github.com:alysivji/flask.git","clone_url":"https://github.com/alysivji/flask.git","svn_url":"https://github.com/alysivji/flask","homepage":"https://www.palletsprojects.com/p/flask/","size":6308,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pallets:master","ref":"master","sha":"dcc02d6e7d4bf486e64aa5b6e55a75501c2ba2e5","user":{"login":"pallets","id":16748505,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzQ4NTA1","avatar_url":"https://avatars3.githubusercontent.com/u/16748505?v=4","gravatar_id":"","url":"https://api.github.com/users/pallets","html_url":"https://github.com/pallets","followers_url":"https://api.github.com/users/pallets/followers","following_url":"https://api.github.com/users/pallets/following{/other_user}","gists_url":"https://api.github.com/users/pallets/gists{/gist_id}","starred_url":"https://api.github.com/users/pallets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pallets/subscriptions","organizations_url":"https://api.github.com/users/pallets/orgs","repos_url":"https://api.github.com/users/pallets/repos","events_url":"https://api.github.com/users/pallets/events{/privacy}","received_events_url":"https://api.github.com/users/pallets/received_events","type":"Organization","site_admin":false},"repo":{"id":596892,"node_id":"MDEwOlJlcG9zaXRvcnk1OTY4OTI=","name":"flask","full_name":"pallets/flask","private":false,"owner":{"login":"pallets","id":16748505,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NzQ4NTA1","avatar_url":"https://avatars3.githubusercontent.com/u/16748505?v=4","gravatar_id":"","url":"https://api.github.com/users/pallets","html_url":"https://github.com/pallets","followers_url":"https://api.github.com/users/pallets/followers","following_url":"https://api.github.com/users/pallets/following{/other_user}","gists_url":"https://api.github.com/users/pallets/gists{/gist_id}","starred_url":"https://api.github.com/users/pallets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pallets/subscriptions","organizations_url":"https://api.github.com/users/pallets/orgs","repos_url":"https://api.github.com/users/pallets/repos","events_url":"https://api.github.com/users/pallets/events{/privacy}","received_events_url":"https://api.github.com/users/pallets/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pallets/flask","description":"The Python micro framework for building web applications.","fork":false,"url":"https://api.github.com/repos/pallets/flask","forks_url":"https://api.github.com/repos/pallets/flask/forks","keys_url":"https://api.github.com/repos/pallets/flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pallets/flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pallets/flask/teams","hooks_url":"https://api.github.com/repos/pallets/flask/hooks","issue_events_url":"https://api.github.com/repos/pallets/flask/issues/events{/number}","events_url":"https://api.github.com/repos/pallets/flask/events","assignees_url":"https://api.github.com/repos/pallets/flask/assignees{/user}","branches_url":"https://api.github.com/repos/pallets/flask/branches{/branch}","tags_url":"https://api.github.com/repos/pallets/flask/tags","blobs_url":"https://api.github.com/repos/pallets/flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pallets/flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pallets/flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/pallets/flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pallets/flask/statuses/{sha}","languages_url":"https://api.github.com/repos/pallets/flask/languages","stargazers_url":"https://api.github.com/repos/pallets/flask/stargazers","contributors_url":"https://api.github.com/repos/pallets/flask/contributors","subscribers_url":"https://api.github.com/repos/pallets/flask/subscribers","subscription_url":"https://api.github.com/repos/pallets/flask/subscription","commits_url":"https://api.github.com/repos/pallets/flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/pallets/flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/pallets/flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/pallets/flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/pallets/flask/contents/{+path}","compare_url":"https://api.github.com/repos/pallets/flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pallets/flask/merges","archive_url":"https://api.github.com/repos/pallets/flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pallets/flask/downloads","issues_url":"https://api.github.com/repos/pallets/flask/issues{/number}","pulls_url":"https://api.github.com/repos/pallets/flask/pulls{/number}","milestones_url":"https://api.github.com/repos/pallets/flask/milestones{/number}","notifications_url":"https://api.github.com/repos/pallets/flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pallets/flask/labels{/name}","releases_url":"https://api.github.com/repos/pallets/flask/releases{/id}","deployments_url":"https://api.github.com/repos/pallets/flask/deployments","created_at":"2010-04-06T11:11:59Z","updated_at":"2018-12-27T17:47:22Z","pushed_at":"2018-12-27T09:47:29Z","git_url":"git://github.com/pallets/flask.git","ssh_url":"git@github.com:pallets/flask.git","clone_url":"https://github.com/pallets/flask.git","svn_url":"https://github.com/pallets/flask","homepage":"https://www.palletsprojects.com/p/flask/","size":6407,"stargazers_count":40900,"watchers_count":40900,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11775,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":11775,"open_issues":75,"watchers":40900,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pallets/flask/pulls/2996"},"html":{"href":"https://github.com/pallets/flask/pull/2996"},"issue":{"href":"https://api.github.com/repos/pallets/flask/issues/2996"},"comments":{"href":"https://api.github.com/repos/pallets/flask/issues/2996/comments"},"review_comments":{"href":"https://api.github.com/repos/pallets/flask/pulls/2996/comments"},"review_comment":{"href":"https://api.github.com/repos/pallets/flask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pallets/flask/pulls/2996/commits"},"statuses":{"href":"https://api.github.com/repos/pallets/flask/statuses/2bd89c378c560a912d3181e6bc22e83e5c10537b"}},"author_association":"NONE"}}
{"actor":{"display_login":"ExplodingCabbage"}}