/**
* ============LICENSE_START=======================================================
- * org.onap.aai
+ * SPARKY (AAI UI service)
* ================================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* Copyright © 2017-2018 Amdocs
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-package org.onap.aai.sparky.config;
+package org.onap.aai.sparky.camel;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
+import org.apache.camel.spring.SpringRouteBuilder;
+import org.springframework.stereotype.Component;
+
+@Component
+public class GlobalSearchRouter extends SpringRouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+
+ rest().post("/search/querysearch").to("bean:unifiedSearchProcessor?method=search");
+
+ }
-@Configuration
-@PropertySource("file:${CONFIG_HOME}/sparky-application.properties")
-public class SparkyConfigLoader {
-
-
}