diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 10:30:43 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 10:30:43 +0200 |
| commit | 4f75791f1a92c6993dbb65bee66f9aae6725bd92 (patch) | |
| tree | 298817098c9a1478d58d18e446b7fcefb1578a75 /opendc/util/rest.py | |
| parent | 64a8696e1507d6affd9b9ed56d2577cdb3fe9747 (diff) | |
Add PUT method and tests
Diffstat (limited to 'opendc/util/rest.py')
| -rw-r--r-- | opendc/util/rest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/util/rest.py b/opendc/util/rest.py index 4da2ced6..2f2e1b53 100644 --- a/opendc/util/rest.py +++ b/opendc/util/rest.py @@ -41,7 +41,7 @@ class Request(object): self.path = message['path'].strip('/') module_base = 'opendc.api.{}.endpoint' - module_path = self.path.replace('/', '.') + module_path = self.path.replace('{', '').replace('}', '').replace('/', '.') self.module = importlib.import_module(module_base.format(module_path)) except ImportError: |
