aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/router_jsx.js
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-09-10 14:22:26 +1200
committerAldo Cortesi <aldo@nullcube.com>2014-09-10 14:23:10 +1200
commit0510c9b111aed03d0d3680db63614d50f231745c (patch)
tree0d2fec5d46a3cb984a8b12e36db2f44a1a8eaa5a /web/src/js/router_jsx.js
parent76982937a68a2adaf96ec2d258e369d7c871a609 (diff)
downloadmitmproxy-0510c9b111aed03d0d3680db63614d50f231745c.tar.gz
mitmproxy-0510c9b111aed03d0d3680db63614d50f231745c.tar.bz2
mitmproxy-0510c9b111aed03d0d3680db63614d50f231745c.zip
Client-side framework for web application
Diffstat (limited to 'web/src/js/router_jsx.js')
-rw-r--r--web/src/js/router_jsx.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/src/js/router_jsx.js b/web/src/js/router_jsx.js
new file mode 100644
index 00000000..707715de
--- /dev/null
+++ b/web/src/js/router_jsx.js
@@ -0,0 +1,10 @@
+/** @jsx React.DOM */
+
+var Router = React.createClass({displayName: 'Router',
+ render: function(){
+ return ReactRouter.Routes({location: "hash"},
+ ReactRouter.Route({name: "certs", path: "/", handler: CertInstallView}),
+ ReactRouter.Route({name: "other", path: "/other", handler: CertInstallView})
+ );
+ }
+});