Skip to content

Commit 22bb9f2

Browse files
update lockr for new endpoint methods
1 parent b50f51f commit 22bb9f2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

crates/common/src/integrations/lockr.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,12 @@ pub fn register(settings: &Settings) -> Option<IntegrationRegistration> {
311311

312312
#[async_trait(?Send)]
313313
impl IntegrationProxy for LockrIntegration {
314+
fn integration_name(&self) -> &'static str {
315+
LOCKR_INTEGRATION_ID
316+
}
317+
314318
fn routes(&self) -> Vec<IntegrationEndpoint> {
315-
vec![
316-
// SDK serving
317-
IntegrationEndpoint::get("/integrations/lockr/sdk"),
318-
// API proxy endpoints
319-
IntegrationEndpoint::post("/integrations/lockr/api/*"),
320-
IntegrationEndpoint::get("/integrations/lockr/api/*"),
321-
]
319+
vec![self.get("/sdk"), self.post("/api/*"), self.get("/api/*")]
322320
}
323321

324322
async fn handle(

0 commit comments

Comments
 (0)