make the endpoints at request time

This commit is contained in:
2022-07-03 23:37:47 +03:00
parent 836c101e6f
commit 3d2fd37191
2 changed files with 8 additions and 28 deletions

View File

@ -160,10 +160,7 @@ func __process_request(method: String, endpoint: String, headers: Dictionary, bo
"[INF] Recieved request method: %s, endpoint: %s" % [method, endpoint]
)
if !binds:
endpoint_func.call_func(request, response)
else:
endpoint_func.call_func(request, response, binds)
endpoint_func.call_func(request, response, binds if binds else [request.endpoint()])
return response