Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
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
ops
luna
Commits
b058b493
Commit
b058b493
authored
Mar 08, 2018
by
zheng liu
Browse files
Options
Browse Files
Download
Plain Diff
Merged in dev (pull request #68)
fix: http get params
parents
07e7c646
309353e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
app.service.ts
src/app/app.service.ts
+11
-5
No files found.
src/app/app.service.ts
View file @
b058b493
...
@@ -80,18 +80,24 @@ export class HttpService {
...
@@ -80,18 +80,24 @@ export class HttpService {
}
}
guacamole_add_asset
(
user_id
:
string
,
asset_id
:
string
,
system_user_id
:
string
)
{
guacamole_add_asset
(
user_id
:
string
,
asset_id
:
string
,
system_user_id
:
string
)
{
const
body
=
new
HttpParams
()
const
params
=
new
HttpParams
()
.
set
(
'user_id'
,
user_id
)
.
set
(
'user_id'
,
user_id
)
.
set
(
'asset_id'
,
asset_id
)
.
set
(
'asset_id'
,
asset_id
)
.
set
(
'system_user_id'
,
system_user_id
)
.
set
(
'system_user_id'
,
system_user_id
)
.
set
(
'token'
,
DataStore
.
guacamole_token
);
.
set
(
'token'
,
DataStore
.
guacamole_token
);
return
this
.
http
.
post
(
'/guacamole/api/session/ext/jumpserver/asset/add'
,
return
this
.
http
.
get
(
body
.
toString
(),
'/guacamole/api/session/ext/jumpserver/asset/add'
,
{
headers
:
new
HttpHeaders
().
set
(
'Content-Type'
,
'application/x-www-form-urlencoded'
)});
{
headers
:
new
HttpHeaders
().
set
(
'Content-Type'
,
'application/x-www-form-urlencoded'
),
params
:
params
}
);
}
}
search
(
q
:
string
)
{
search
(
q
:
string
)
{
return
this
.
http
.
get
(
'/api/search?q='
+
q
);
const
params
=
new
HttpParams
()
.
set
(
'q'
,
q
);
return
this
.
http
.
get
(
'/api/search'
,
{
params
:
params
});
}
}
get_replay
(
token
:
string
)
{
get_replay
(
token
:
string
)
{
...
...
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