mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 10:25:09 +00:00
refactor(remote): send every client call through RemoteClient
This commit is contained in:
@@ -16,7 +16,14 @@ from unshackle.core.api import routes
|
||||
from unshackle.core.api.handlers import SESSION_TRANSPORT_KEYS
|
||||
|
||||
ROUTE_NAMES = {name for name in vars(protocol) if name.endswith("_ROUTE")}
|
||||
CLIENT_METHODS = {"get": "GET", "get_optional": "GET", "post": "POST", "post_optional": "POST", "delete": "DELETE"}
|
||||
CLIENT_METHODS = {
|
||||
"get": "GET",
|
||||
"get_optional": "GET",
|
||||
"probe": "GET",
|
||||
"post": "POST",
|
||||
"post_optional": "POST",
|
||||
"delete": "DELETE",
|
||||
}
|
||||
SERVED = {(method, path): handler for method, path, handler, _ in routes.ROUTES}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user