Skip to content

Commit c5a5ff5

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

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

crates/common/src/integrations/lockr.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,15 @@ 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![
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/*"),
320+
self.get("/sdk"),
321+
self.post("/api/*"),
322+
self.get("/api/*"),
321323
]
322324
}
323325

0 commit comments

Comments
 (0)