Skip to content

Commit 4ae04d5

Browse files
update lockr for new endpoint methods
1 parent b50f51f commit 4ae04d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

crates/common/src/integrations/lockr.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,17 @@ 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> {
315319
vec![
316320
// SDK serving
317-
IntegrationEndpoint::get("/integrations/lockr/sdk"),
321+
self.get("/sdk"),
318322
// API proxy endpoints
319-
IntegrationEndpoint::post("/integrations/lockr/api/*"),
320-
IntegrationEndpoint::get("/integrations/lockr/api/*"),
323+
self.post("/api/*"),
324+
self.get("/api/*"),
321325
]
322326
}
323327

0 commit comments

Comments
 (0)