Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pleroma-fe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joseph Nuthalapati
pleroma-fe
Commits
8375d7a3
Commit
8375d7a3
authored
Jul 23, 2019
by
Tae Hoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guard more secure routes
parent
ad29e203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/boot/routes.js
src/boot/routes.js
+2
-2
No files found.
src/boot/routes.js
View file @
8375d7a3
...
...
@@ -49,12 +49,12 @@ export default (store) => {
{
name
:
'
registration-token
'
,
path
:
'
/registration/:token
'
,
component
:
Registration
},
{
name
:
'
friend-requests
'
,
path
:
'
/friend-requests
'
,
component
:
FollowRequests
,
beforeEnter
:
validateAuthenticatedRoute
},
{
name
:
'
user-settings
'
,
path
:
'
/user-settings
'
,
component
:
UserSettings
,
beforeEnter
:
validateAuthenticatedRoute
},
{
name
:
'
notifications
'
,
path
:
'
/:username/notifications
'
,
component
:
Notifications
},
{
name
:
'
notifications
'
,
path
:
'
/:username/notifications
'
,
component
:
Notifications
,
beforeEnter
:
validateAuthenticatedRoute
},
{
name
:
'
login
'
,
path
:
'
/login
'
,
component
:
AuthForm
},
{
name
:
'
chat
'
,
path
:
'
/chat
'
,
component
:
ChatPanel
,
props
:
()
=>
({
floating
:
false
})
},
{
name
:
'
oauth-callback
'
,
path
:
'
/oauth-callback
'
,
component
:
OAuthCallback
,
props
:
(
route
)
=>
({
code
:
route
.
query
.
code
})
},
{
name
:
'
search
'
,
path
:
'
/search
'
,
component
:
Search
,
props
:
(
route
)
=>
({
query
:
route
.
query
.
query
})
},
{
name
:
'
who-to-follow
'
,
path
:
'
/who-to-follow
'
,
component
:
WhoToFollow
},
{
name
:
'
who-to-follow
'
,
path
:
'
/who-to-follow
'
,
component
:
WhoToFollow
,
beforeEnter
:
validateAuthenticatedRoute
},
{
name
:
'
about
'
,
path
:
'
/about
'
,
component
:
About
},
{
name
:
'
user-profile
'
,
path
:
'
/(users/)?:name
'
,
component
:
UserProfile
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment