Commit e7cecedc authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api/projects: fix environments API endpoint

parent c888af88
......@@ -15,6 +15,11 @@ parameters was also implemented.
Some additional merge status names for merge requests were missing and have
been added.
## Fixes
* The `api::projects::environments::Environment` endpoint uses the correct
path now.
# v0.1210.1
## New API strategy
......
......@@ -34,7 +34,11 @@ impl<'a> Endpoint for Environment<'a> {
}
fn endpoint(&self) -> Cow<'static, str> {
format!("projects/{}/environment/{}", self.project, self.environment).into()
format!(
"projects/{}/environments/{}",
self.project, self.environment,
)
.into()
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment