diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-23 15:54:14 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-23 15:54:14 +0300 |
commit | 12e22b32e6023e06769761788738cd6dc5a9cea3 (patch) | |
tree | e6271afa501a88aaa184d1eb7198881a6881877b /ick2/projectapi.py | |
parent | cd94b9bb79ef7793ee0e828d04774607621eca3e (diff) | |
download | ick2-12e22b32e6023e06769761788738cd6dc5a9cea3.tar.gz |
Change: allow projects, pipelines, etc, have a foo/bar/baz syntax
Diffstat (limited to 'ick2/projectapi.py')
-rw-r--r-- | ick2/projectapi.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ick2/projectapi.py b/ick2/projectapi.py index f351e8d..90197ae 100644 --- a/ick2/projectapi.py +++ b/ick2/projectapi.py @@ -39,9 +39,7 @@ class ProjectAPI(ick2.ResourceApiBase): return super().get_routes(path) + self.get_status_routes(path) def get_status_routes(self, path): # pragma: no cover - all_statuses_path = '/status' - status_path = '{}/<project>/status'.format(path) - trigger_path = '{}/<project>/+trigger'.format(path) + trigger_path = '{}/<project:path>/+trigger'.format(path) return [ { 'needs-authorization': False, |