Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
88db9976
Commit
88db9976
authored
Nov 10, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move hystrix templates to /hystrix/*
parent
8c8844f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
HystrixDashboardController.java
...netflix/hystrix/dashboard/HystrixDashboardController.java
+5
-4
index.ftl
...-dashboard/src/main/resources/templates/hystrix/index.ftl
+0
-0
monitor.ftl
...ashboard/src/main/resources/templates/hystrix/monitor.ftl
+0
-0
No files found.
spring-cloud-netflix-hystrix-dashboard/src/main/java/org/springframework/cloud/netflix/hystrix/dashboard/HystrixDashboardController.java
View file @
88db9976
...
@@ -17,6 +17,7 @@ package org.springframework.cloud.netflix.hystrix.dashboard;
...
@@ -17,6 +17,7 @@ package org.springframework.cloud.netflix.hystrix.dashboard;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.context.request.WebRequest
;
import
org.springframework.web.context.request.WebRequest
;
...
@@ -30,14 +31,14 @@ public class HystrixDashboardController {
...
@@ -30,14 +31,14 @@ public class HystrixDashboardController {
@RequestMapping
(
"/hystrix"
)
@RequestMapping
(
"/hystrix"
)
public
String
home
(
Model
model
,
WebRequest
request
)
{
public
String
home
(
Model
model
,
WebRequest
request
)
{
model
.
addAttribute
(
"basePath"
,
extractPath
(
request
));
model
.
addAttribute
(
"basePath"
,
extractPath
(
request
));
return
"index"
;
return
"
hystrix/
index"
;
}
}
@RequestMapping
(
"/hystrix/
monitor
"
)
@RequestMapping
(
"/hystrix/
{path}
"
)
public
String
monitor
(
Model
model
,
WebRequest
request
)
{
public
String
monitor
(
@PathVariable
String
path
,
Model
model
,
WebRequest
request
)
{
model
.
addAttribute
(
"basePath"
,
extractPath
(
request
));
model
.
addAttribute
(
"basePath"
,
extractPath
(
request
));
model
.
addAttribute
(
"contextPath"
,
request
.
getContextPath
());
model
.
addAttribute
(
"contextPath"
,
request
.
getContextPath
());
return
"
monitor"
;
return
"
hystrix/"
+
path
;
}
}
private
String
extractPath
(
WebRequest
request
)
{
private
String
extractPath
(
WebRequest
request
)
{
...
...
spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/index.ftl
→
spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/
hystrix/
index.ftl
View file @
88db9976
File moved
spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/monitor.ftl
→
spring-cloud-netflix-hystrix-dashboard/src/main/resources/templates/
hystrix/
monitor.ftl
View file @
88db9976
File moved
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