Bug: [BUG] Fix Routing activate Route 



### Bug Description

When trying to hit the routing activate route , it was throwing a deserialisation error due to the passing a struct instead of a tuple struct

### Expected Behavior

When trying to hit the routing activate route ,it should not throw a error

### Actual Behavior

Should pass the String in the path param

### Steps To Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'


### Context For The Bug

_No response_

### Environment

Are you using hyperswitch hosted version? Yes/No
If yes, please provide the value of the `x-request-id` response header to help us debug your issue.

If not (or if building/running locally), please provide the following details:
1. Operating System or Linux distribution:
2. Rust version (output of `rustc --version`): ``
3. App version (output of `cargo r --features vergen -- --version`): ``


### Have you spent some time checking if this bug has been raised before?

- [X] I checked and didn't find a similar issue

### Have you read the Contributing Guidelines?

- [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md)

### Are you willing to submit a PR?

Yes, I am willing to submit a PR!
diff --git a/crates/router/src/core/routing.rs b/crates/router/src/core/routing.rs
index 267a3d55ce4..d5a3a96d155 100644
--- a/crates/router/src/core/routing.rs
+++ b/crates/router/src/core/routing.rs
@@ -428,18 +428,15 @@ pub async fn retrieve_routing_algorithm_from_algorithm_id(
     state: SessionState,
     merchant_account: domain::MerchantAccount,
     key_store: domain::MerchantKeyStore,
-    algorithm_id: routing_types::RoutingAlgorithmId,
+    algorithm_id: String,
 ) -> RouterResponse<routing_types::MerchantRoutingAlgorithm> {
     metrics::ROUTING_RETRIEVE_CONFIG.add(&metrics::CONTEXT, 1, &[]);
     let db = state.store.as_ref();
     let key_manager_state = &(&state).into();
 
-    let routing_algorithm = RoutingAlgorithmUpdate::fetch_routing_algo(
-        merchant_account.get_id(),
-        &algorithm_id.routing_algorithm_id,
-        db,
-    )
-    .await?;
+    let routing_algorithm =
+        RoutingAlgorithmUpdate::fetch_routing_algo(merchant_account.get_id(), &algorithm_id, db)
+            .await?;
     core_utils::validate_and_get_business_profile(
         db,
         key_manager_state,
@@ -464,7 +461,7 @@ pub async fn retrieve_routing_algorithm_from_algorithm_id(
     state: SessionState,
     merchant_account: domain::MerchantAccount,
     key_store: domain::MerchantKeyStore,
-    algorithm_id: routing_types::RoutingAlgorithmId,
+    algorithm_id: String,
 ) -> RouterResponse<routing_types::MerchantRoutingAlgorithm> {
     metrics::ROUTING_RETRIEVE_CONFIG.add(&metrics::CONTEXT, 1, &[]);
     let db = state.store.as_ref();
@@ -472,7 +469,7 @@ pub async fn retrieve_routing_algorithm_from_algorithm_id(
 
     let routing_algorithm = db
         .find_routing_algorithm_by_algorithm_id_merchant_id(
-            &algorithm_id.routing_algorithm_id,
+            &algorithm_id,
             merchant_account.get_id(),
         )
         .await
diff --git a/crates/router/src/routes/routing.rs b/crates/router/src/routes/routing.rs
index 61d89e5e773..ecce0f96198 100644
--- a/crates/router/src/routes/routing.rs
+++ b/crates/router/src/routes/routing.rs
@@ -60,7 +60,7 @@ pub async fn routing_create_config(
 pub async fn routing_link_config(
     state: web::Data<AppState>,
     req: HttpRequest,
-    path: web::Path<routing_types::RoutingAlgorithmId>,
+    path: web::Path<String>,
     transaction_type: &enums::TransactionType,
 ) -> impl Responder {
     let flow = Flow::RoutingLinkConfig;
@@ -74,7 +74,7 @@ pub async fn routing_link_config(
                 state,
                 auth.merchant_account,
                 auth.key_store,
-                algorithm.routing_algorithm_id,
+                algorithm,
                 transaction_type,
             )
         },
@@ -139,7 +139,7 @@ pub async fn routing_link_config(
 pub async fn routing_retrieve_config(
     state: web::Data<AppState>,
     req: HttpRequest,
-    path: web::Path<routing_types::RoutingAlgorithmId>,
+    path: web::Path<String>,
 ) -> impl Responder {
     let algorithm_id = path.into_inner();
     let flow = Flow::RoutingRetrieveConfig;

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
fix routing routes for activating and retrieving the routing algorithms where not able to deserialise correctly due to the following [PR](https://github.com/juspay/hyperswitch/pull/5686)


### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?

- Create a MA and a MCa 
-  Create a Routing Rule
```
curl --location 'http://localhost:8080/routing' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_HIL1XwQlvsJtPbfaOoWrYPznXmFoKE2F0Sg2Kq58Rjnj8PsV5k51g33I6a8chvLN' \
--data '{
 "profile_id": "pro_2ScZ3GfSL10mn5BMMuFH",
    "name": "Brand based",
    "description": "This is a rule based routing created at Wed, 21 Aug 2024 08:28:31 GMT",
    "algorithm": {
        "type": "advanced",
        "data": {
            "defaultSelection": {
                "type": "priority",
                "data": []
            },
            "rules": [
                {
                    "name": "rule_1",
                    "connectorSelection": {
                        "type": "priority",
                        "data": [
                            {
                                "connector": "adyen",
                                "merchant_connector_id": "mca_TAhGgaYPtdIYiPfQ2684"
                            }
                        ]
                    },
                    "statements": [
                        {
                            "condition": [
                                {
                                    "lhs": "metadata",
                                    "comparison": "equal",
                                    "value": {
                                        "type": "metadata_variant",
                                        "value": {
                                            "key": "brand",
                                            "value": "waytopark"
                                        }
                                    },
                                    "metadata": {}
                                }
                            ],
                            "nested": null
                        }
                    ]
                },
                {
                    "name": "rule_2",
                    "connectorSelection": {
                        "type": "priority",
                        "data": [
                            {
                                "connector": "adyen",
                                "merchant_connector_id": "mca_TAhGgaYPtdIYiPfQ2684"
                            }
                        ]
                    },
                    "statements": [
                        {
                            "condition": [
                                {
                                    "lhs": "metadata",
                                    "comparison": "equal",
                                    "value": {
                                        "type": "metadata_variant",
                                        "value": {
                                            "key": "brand",
                                            "value": "flowbird"
                                        }
                                    },
                                    "metadata": {}
                                }
                            ],
                            "nested": null
                        }
                    ]
                }
            ],
            "metadata": {}
        }
    }
}'
```
- Activate the routing rule, should be activated correctly
```
Response
curl --location --request POST 'http://localhost:8080/routing/routing_merchant_1724767283_pDOPqSye0G/activate' \
--header 'api-key: dev_HIL1XwQlvsJtPbfaOoWrYPznXmFoKE2F0Sg2Kq58Rjnj8PsV5k51g33I6a8chvLN'
```
- Retrieve the routing rule, should be retrieved successfully
```
curl --location 'http://localhost:8080/routing/routing_merchant_1724767283_pDOPqSye0G' \
--header 'api-key: dev_HIL1XwQlvsJtPbfaOoWrYPznXmFoKE2F0Sg2Kq58Rjnj8PsV5k51g33I6a8chvLN'
```
```
Response
{
    "id": "routing_merchant_1724767283_pDOPqSye0G",
    "profile_id": "pro_2ScZ3GfSL10mn5BMMuFH",
    "name": "Brand based",
    "description": "This is a rule based routing created at Wed, 21 Aug 2024 08:28:31 GMT",
    "algorithm": {
        "type": "advanced",
        "data": {
            "defaultSelection": {
                "type": "priority",
                "data": []
            },
            "rules": [
                {
                    "name": "rule_1",
                    "connectorSelection": {
                        "type": "priority",
                        "data": [
                            {
                                "connector": "adyen",
                                "merchant_connector_id": "mca_TAhGgaYPtdIYiPfQ2684"
                            }
                        ]
                    },
                    "statements": [
                        {
                            "condition": [
                                {
                                    "lhs": "metadata",
                                    "comparison": "equal",
                                    "value": {
                                        "type": "metadata_variant",
                                        "value": {
                                            "key": "brand",
                                            "value": "waytopark"
                                        }
                                    },
                                    "metadata": {}
                                }
                            ],
                            "nested": null
                        }
                    ]
                },
                {
                    "name": "rule_2",
                    "connectorSelection": {
                        "type": "priority",
                        "data": [
                            {
                                "connector": "adyen",
                                "merchant_connector_id": "mca_TAhGgaYPtdIYiPfQ2684"
                            }
                        ]
                    },
                    "statements": [
                        {
                            "condition": [
                                {
                                    "lhs": "metadata",
                                    "comparison": "equal",
                                    "value": {
                                        "type": "metadata_variant",
                                        "value": {
                                            "key": "brand",
                                            "value": "flowbird"
                                        }
                                    },
                                    "metadata": {}
                                }
                            ],
                            "nested": null
                        }
                    ]
                }
            ],
            "metadata": {}
        }
    },
    "created_at": 1724767426,
    "modified_at": 1724767426,
    "algorithm_for": "payment"
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->

- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
