Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Katharina Fey
forge
Commits
e6d40e34
Verified
Commit
e6d40e34
authored
Jan 10, 2019
by
Katharina Fey
🏴
Browse files
Fixing a compile issue
parent
a3ca35f6
Changes
1
Show whitespace changes
Inline
Side-by-side
forge-server/src/main.rs
View file @
e6d40e34
use
actix_web
::{
http
,
HttpMessage
,
server
,
App
,
HttpRequest
,
Json
,
Responder
};
use
actix_web
::{
http
,
server
,
App
,
HttpMessage
,
HttpRequest
,
Json
,
Responder
};
use
libforge
::
clap
::{
App
as
ClapApp
,
Arg
,
ArgMatches
};
use
std
::
convert
::
From
;
use
std
::
env
;
...
...
@@ -73,9 +73,7 @@ fn main() {
let
route
=
params
.route
.clone
();
server
::
new
(
move
||
{
App
::
new
()
.resource
(
&
params
.bind
,
|
r
|
{
r
.method
(
http
::
Method
::
POST
)
.f
(
handle_token
)
})
App
::
new
()
.resource
(
&
route
,
|
r
|
r
.method
(
http
::
Method
::
POST
)
.f
(
handle_token
))
})
.bind
(
&
format!
(
"{}:{}"
,
params
.bind
,
params
.port
))
.unwrap
()
.run
();
...
...
Write
Preview
Supports
Markdown
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