mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 23:57:01 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8f7f6545b1
commit
87ac32cd6b
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue