Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spotifier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kovács Dániel
spotifier
Commits
9886540c
Commit
9886540c
authored
Dec 6, 2019
by
Daniel Kovacs
Browse files
Options
Downloads
Patches
Plain Diff
asd
parent
cc14cef7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/App.js
+1
-1
1 addition, 1 deletion
frontend/src/App.js
frontend/src/components/common/PrivateRoute.js
+1
-1
1 addition, 1 deletion
frontend/src/components/common/PrivateRoute.js
server.js
+1
-1
1 addition, 1 deletion
server.js
with
3 additions
and
3 deletions
frontend/src/App.js
+
1
−
1
View file @
9886540c
...
...
@@ -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
>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/common/PrivateRoute.js
+
1
−
1
View file @
9886540c
...
...
@@ -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
>
)
}
/
>
...
...
This diff is collapsed.
Click to expand it.
server.js
+
1
−
1
View file @
9886540c
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment