File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
src/main/java/com/ericsson/ei/controller Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 295
295
<groupId >org.apache.qpid</groupId >
296
296
<artifactId >qpid-broker-core</artifactId >
297
297
<version >7.1.0</version >
298
+ <scope >test</scope >
298
299
</dependency >
299
300
300
301
<!-- https://mvnrepository.com/artifact/org.apache.qpid/qpid-broker-plugins-management-http -->
301
302
<dependency >
302
303
<groupId >org.apache.qpid</groupId >
303
304
<artifactId >qpid-broker-plugins-management-http</artifactId >
304
305
<version >7.1.0</version >
305
- <scope >runtime </scope >
306
+ <scope >test </scope >
306
307
</dependency >
307
308
308
309
<dependency >
309
310
<groupId >org.apache.qpid</groupId >
310
311
<artifactId >qpid-broker-plugins-amqp-1-0-protocol</artifactId >
311
312
<version >7.1.0</version >
313
+ <scope >test</scope >
312
314
</dependency >
313
315
314
316
<dependency >
315
317
<groupId >org.apache.qpid</groupId >
316
318
<artifactId >qpid-broker-plugins-memory-store</artifactId >
317
319
<version >7.1.0</version >
320
+ <scope >test</scope >
318
321
</dependency >
319
322
320
323
<dependency >
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2019 Ericsson AB.
3
+ For a full list of individual contributors, please see the commit history.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */
17
+ package com .ericsson .ei .controller ;
18
+
19
+ import org .springframework .stereotype .Controller ;
20
+ import org .springframework .web .bind .annotation .RequestMapping ;
21
+ import org .springframework .web .bind .annotation .RequestMethod ;
22
+
23
+ /**
24
+ *
25
+ * This class redirects the EI root URL to swagger landing page
26
+ *
27
+ */
28
+ @ Controller
29
+ public class EIHomeController {
30
+
31
+ @ RequestMapping (value = "/" , method = RequestMethod .GET )
32
+ public String home () {
33
+ return "redirect:/swagger-ui.html" ;
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments