Skip to content

Commit 2459c60

Browse files
Delete outdated configuration endpoint
1 parent 941a1f5 commit 2459c60

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/server/routes/agent.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ pub fn routes(
3939
.and(auth_filter(data.clone(), TokenType::Agent))
4040
.map(endpoint_config);
4141

42-
// Assume agents that do not POST their capabilities to `/config` are Linux agents.
43-
let config_old = warp::get2()
44-
.and(warp::path("config"))
45-
.and(warp::path::end())
46-
.and(data_filter.clone())
47-
.and(auth_filter(data.clone(), TokenType::Agent))
48-
.map(|data, auth| endpoint_config(Capabilities::new(&["linux"]), data, auth));
49-
5042
let next_experiment = warp::get2()
5143
.and(warp::path("next-experiment"))
5244
.and(warp::path::end())
@@ -81,8 +73,6 @@ pub fn routes(
8173
warp::any()
8274
.and(
8375
config
84-
.or(config_old)
85-
.unify()
8676
.or(next_experiment)
8777
.unify()
8878
.or(record_progress)

0 commit comments

Comments
 (0)