misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-09-29 02:34:27 +02:00
parent 8f7f6545b1
commit 87ac32cd6b
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E

View file

@ -50,8 +50,9 @@ func NewRestAPI(s *session.Session) *RestAPI {
"8081", "8081",
"Port to bind the API REST server to.")) "Port to bind the API REST server to."))
api.AddParam(session.NewIntParameter("api.rest.alloworigin", api.AddParam(session.NewStringParameter("api.rest.alloworigin",
api.allowOrigin, api.allowOrigin,
"",
"Value of the Access-Control-Allow-Origin header of the API server.")) "Value of the Access-Control-Allow-Origin header of the API server."))
api.AddParam(session.NewStringParameter("api.rest.username", api.AddParam(session.NewStringParameter("api.rest.username",