Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
apollo
Commits
f9b2aa6b
Commit
f9b2aa6b
authored
Feb 22, 2020
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the issue that access key function doesn't work when prefix path is configured
parent
ffc33fb8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PrefixPathController.java
...mework/apollo/portal/controller/PrefixPathController.java
+1
-1
apollo-portal/src/main/resources/static/app/access_key.html
apollo-portal/src/main/resources/static/app/access_key.html
+1
-1
apollo-portal/src/main/resources/static/config.html
apollo-portal/src/main/resources/static/config.html
+1
-1
apollo-portal/src/main/resources/static/scripts/services/AccessKeyService.js
...ain/resources/static/scripts/services/AccessKeyService.js
+6
-6
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PrefixPathController.java
View file @
f9b2aa6b
...
...
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public
class
PrefixPathController
{
@Value
(
"${prefix
P
ath:}"
)
@Value
(
"${prefix
.p
ath:}"
)
private
String
prefixPath
;
@GetMapping
(
"/prefix-path"
)
...
...
apollo-portal/src/main/resources/static/app/access_key.html
View file @
f9b2aa6b
...
...
@@ -28,7 +28,7 @@
</div>
<div
class=
"col-md-5 text-right"
>
<a
type=
"button"
class=
"btn btn-info"
data-dismiss=
"modal"
href=
"
/config.html
?#appid={{pageContext.appId}}"
>
{{'Common.ReturnToIndex' | translate }}
href=
"
{{ '/config.html' | prefixPath }}
?#appid={{pageContext.appId}}"
>
{{'Common.ReturnToIndex' | translate }}
</a>
</div>
</div>
...
...
apollo-portal/src/main/resources/static/config.html
View file @
f9b2aa6b
...
...
@@ -122,7 +122,7 @@
<apolloentrance
apollo-title=
"'Config.AccessKeyManage' | translate"
apollo-img-src=
"'accesskey-manage'"
apollo-href=
"'
/
app/access_key.html?#/appid=' + pageContext.appId"
></apolloentrance>
apollo-href=
"'app/access_key.html?#/appid=' + pageContext.appId"
></apolloentrance>
<a
class=
"list-group-item"
ng-show=
"missEnvs.length > 0"
ng-click=
"createAppInMissEnv()"
>
<div
class=
"row icon-text icon-plus-orange"
>
...
...
apollo-portal/src/main/resources/static/scripts/services/AccessKeyService.js
View file @
f9b2aa6b
appService
.
service
(
'
AccessKeyService
'
,
[
'
$resource
'
,
'
$q
'
,
function
(
$resource
,
$q
)
{
appService
.
service
(
'
AccessKeyService
'
,
[
'
$resource
'
,
'
$q
'
,
'
AppUtil
'
,
function
(
$resource
,
$q
,
AppUtil
)
{
var
access_key_resource
=
$resource
(
''
,
{},
{
load_access_keys
:
{
method
:
'
GET
'
,
isArray
:
true
,
url
:
'
/apps/:appId/envs/:env/accesskeys
'
url
:
AppUtil
.
prefixPath
()
+
'
/apps/:appId/envs/:env/accesskeys
'
},
create_access_key
:
{
method
:
'
POST
'
,
url
:
'
/apps/:appId/envs/:env/accesskeys
'
url
:
AppUtil
.
prefixPath
()
+
'
/apps/:appId/envs/:env/accesskeys
'
},
remove_access_key
:
{
method
:
'
DELETE
'
,
url
:
'
/apps/:appId/envs/:env/accesskeys/:id
'
url
:
AppUtil
.
prefixPath
()
+
'
/apps/:appId/envs/:env/accesskeys/:id
'
},
enable_access_key
:
{
method
:
'
PUT
'
,
url
:
'
/apps/:appId/envs/:env/accesskeys/:id/enable
'
url
:
AppUtil
.
prefixPath
()
+
'
/apps/:appId/envs/:env/accesskeys/:id/enable
'
},
disable_access_key
:
{
method
:
'
PUT
'
,
url
:
'
/apps/:appId/envs/:env/accesskeys/:id/disable
'
url
:
AppUtil
.
prefixPath
()
+
'
/apps/:appId/envs/:env/accesskeys/:id/disable
'
}
});
return
{
...
...
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