make the endpoints at request time

This commit is contained in:
yagich committed 2022-07-03 23:37:47 +03:00
1 parent 836c101e6f
commit 3d2fd37191
2 files changed
+8 -28

No files matched your search

+1 -4
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