diff --git a/app.js b/app.js
index 04e4222cd..22f343221 100644
--- a/app.js
+++ b/app.js
@@ -17,9 +17,8 @@ app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
// Routes.
-app.use('/api/v1', require('./routes/api'));
app.use('/client', express.static(path.join(__dirname, 'dist')));
-app.use('/admin', require('./routes/admin'));
+app.use('/', require('./routes'));
//==============================================================================
// ERROR HANDLING
diff --git a/client/coral-admin/src/AppRouter.js b/client/coral-admin/src/AppRouter.js
index d00caa6c5..d1b25d0f1 100644
--- a/client/coral-admin/src/AppRouter.js
+++ b/client/coral-admin/src/AppRouter.js
@@ -3,7 +3,6 @@ import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import ModerationQueue from 'containers/ModerationQueue';
import CommentStream from 'containers/CommentStream';
-import EmbedLink from 'components/EmbedLink';
import Configure from 'containers/Configure';
import CommunityContainer from 'containers/CommunityContainer';
import LayoutContainer from 'containers/LayoutContainer';
@@ -12,7 +11,6 @@ const routes = (
-
diff --git a/client/coral-admin/src/components/EmbedLink.css b/client/coral-admin/src/components/EmbedLink.css
deleted file mode 100644
index 15583414a..000000000
--- a/client/coral-admin/src/components/EmbedLink.css
+++ /dev/null
@@ -1,13 +0,0 @@
-#embedLink {
- width:400px;
- margin-left: auto;
- margin-right: auto;
-}
-
-.embedTextarea {
- width: 100%;
-}
-
-.copyButton {
- margin-top: 20px;
-}
diff --git a/client/coral-admin/src/components/EmbedLink.js b/client/coral-admin/src/components/EmbedLink.js
deleted file mode 100644
index 41cbdf170..000000000
--- a/client/coral-admin/src/components/EmbedLink.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from 'react';
-import styles from './EmbedLink.css';
-import I18n from 'coral-framework/i18n/i18n';
-import translations from '../translations';
-import {Button} from 'react-mdl';
-
-const embedText =
-`
`;
-
-const copyToClipBoard = () => {
- const copyTextarea = document.querySelector(`.${ styles.embedTextarea}`);
- copyTextarea.select();
-
- try {
- document.execCommand('copy');
- } catch (err) {
- console.error('Unable to copy');
- }
-};
-
-const EmbedLink = () =>
-
Embed Comment Stream
-
-
-
- {lang.t('embedlink.copy')}
-
-
-
;
-
-export default EmbedLink;
-
-const lang = new I18n(translations);
diff --git a/client/coral-admin/src/containers/Configure.js b/client/coral-admin/src/containers/Configure.js
index 0d4cf58d6..229c4e948 100644
--- a/client/coral-admin/src/containers/Configure.js
+++ b/client/coral-admin/src/containers/Configure.js
@@ -80,8 +80,7 @@ class Configure extends React.Component {
}
getEmbed () {
- const embedText =
- `
`;
+ const embedText = `
`;
return
diff --git a/routes/embed/index.js b/routes/embed/index.js
new file mode 100644
index 000000000..519de9d2f
--- /dev/null
+++ b/routes/embed/index.js
@@ -0,0 +1,14 @@
+const express = require('express');
+const router = express.Router();
+
+router.use('/:embed', (req, res, next) => {
+ switch (req.params.embed) {
+ case 'stream':
+ return res.render('embed/stream', {});
+ default:
+ // will return a 404.
+ return next();
+ }
+});
+
+module.exports = router;
diff --git a/routes/index.js b/routes/index.js
new file mode 100644
index 000000000..cde5b07c7
--- /dev/null
+++ b/routes/index.js
@@ -0,0 +1,12 @@
+const express = require('express');
+const router = express.Router();
+
+router.use('/api/v1', require('./api'));
+router.use('/admin', require('./admin'));
+router.use('/embed', require('./embed'));
+
+router.get('/', (req, res) => {
+ return res.render('home', {});
+});
+
+module.exports = router;
diff --git a/views/embed/stream.ejs b/views/embed/stream.ejs
new file mode 100644
index 000000000..dd7142c3b
--- /dev/null
+++ b/views/embed/stream.ejs
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/views/home.ejs b/views/home.ejs
new file mode 100644
index 000000000..5654e1745
--- /dev/null
+++ b/views/home.ejs
@@ -0,0 +1,16 @@
+
+
+
+
+
+
Corem ipsal
+
Lorem ipsum dolor sponge amet, consectetur adipiscing clam. Ut lobortis sollicitudin pillar a ornare. Curabitur dignissim vestibulum cay non rhoncus. Cras laoreet ante vel nunc hendrerit, shelf imperdiet neque egestas. Suspendisse aliquet iaculis fermentum. Talk volutpat, tellus posuere laoreet consequat, mi lacus laoreet massa, sed vehicula mauris velit non lectus. Integer non trust nec neque congue faucibus porttitor sit amet elkhorn.
+
+
+
+
+
+
+