Skip to content
Snippets Groups Projects
Commit 9886540c authored by Daniel Kovacs's avatar Daniel Kovacs
Browse files

asd

parent cc14cef7
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class App extends Component {
<Route exact path="/" component={Landing} />
<div className="containter">
<Switch>
<Route exact path="/login" component={Landing} />
<Route exact path="/auth" component={Landing} />
<PrivateRoute exact path="/dashboard" component={Dashboard}></PrivateRoute>
<PrivateRoute exact path="/add-playlist" component={AddPlaylist}></PrivateRoute>
<PrivateRoute exact path="/playlist/:id" component={EditPlaylist}></PrivateRoute>
......
......@@ -12,7 +12,7 @@ return (
auth.isAuthenticated===true ? (
<Component {...props}/>
) : (
<Redirect to ={"/login?from="+rest.computedMatch.url}></Redirect>
<Redirect to ={"/auth?from="+rest.computedMatch.url}></Redirect>
)
}
/>
......
......@@ -32,7 +32,7 @@ let db = new sqlite3.Database('./spotifier.db', (err) => {
console.log('Connected to the database.');
});
app.get('/auth', function (req, res) {
app.get('/login', function (req, res) {
res.redirect('https://accounts.spotify.com/authorize?' +
querystring.stringify({
response_type: 'code',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment