From 87ac32cd6b1187193b80333e5f20f73abf0fb46b Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 29 Sep 2018 02:34:27 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/api_rest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/api_rest.go b/modules/api_rest.go index e317bbb2..0b471004 100644 --- a/modules/api_rest.go +++ b/modules/api_rest.go @@ -50,8 +50,9 @@ func NewRestAPI(s *session.Session) *RestAPI { "8081", "Port to bind the API REST server to.")) - api.AddParam(session.NewIntParameter("api.rest.alloworigin", + api.AddParam(session.NewStringParameter("api.rest.alloworigin", api.allowOrigin, + "", "Value of the Access-Control-Allow-Origin header of the API server.")) api.AddParam(session.NewStringParameter("api.rest.username",