diff --git a/server/server.js b/server/server.js index 8c647421..d503ba81 100644 --- a/server/server.js +++ b/server/server.js @@ -49,6 +49,9 @@ const passportConfig = require('./config/passport'); app.get("/", function(req, res) { res.sendFile(path.resolve(__dirname + '/../index.html')); }) +app.get("/login", function(req, res) { + res.sendFile(path.resolve(__dirname + '/../index.html')); +}) // start app app.listen(serverConfig.port, (error) => { diff --git a/shared/containers/LoginView/LoginView.jsx b/shared/containers/LoginView/LoginView.jsx new file mode 100644 index 00000000..ff9ab19c --- /dev/null +++ b/shared/containers/LoginView/LoginView.jsx @@ -0,0 +1,15 @@ +import React from 'react' + +class LoginView extends React.Component { + render() { + return ( +
+ ) + } +} + +export default LoginView; \ No newline at end of file diff --git a/shared/routes.js b/shared/routes.js index 862a1d79..b536c4f6 100644 --- a/shared/routes.js +++ b/shared/routes.js @@ -2,10 +2,12 @@ import { Route, IndexRoute } from 'react-router' import React from 'react' import App from './containers/App' import IDEView from './containers/IDEView/IDEView' +import LoginView from './containers/LoginView/LoginView' const routes = (