Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
vridge-docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
JIRA
JIRA
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Gyeongho Park
vridge-docs
Commits
9c6fa42e
Commit
9c6fa42e
authored
Feb 10, 2023
by
Gyeongho Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MOD] Swagger URI 리다이렉
parent
38b3a342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
VridgeDocsApplication.java
...ain/java/com/vazil/vridge/docs/VridgeDocsApplication.java
+13
-0
GuideController.java
...ava/com/vazil/vridge/docs/controller/GuideController.java
+1
-0
No files found.
docs-back/src/main/java/com/vazil/vridge/docs/VridgeDocsApplication.java
View file @
9c6fa42e
...
...
@@ -2,6 +2,14 @@ package com.vazil.vridge.docs;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.web.servlet.function.RouterFunction
;
import
org.springframework.web.servlet.function.ServerResponse
;
import
java.net.URI
;
import
static
org
.
springframework
.
web
.
servlet
.
function
.
RequestPredicates
.
GET
;
import
static
org
.
springframework
.
web
.
servlet
.
function
.
RouterFunctions
.
route
;
@SpringBootApplication
public
class
VridgeDocsApplication
{
...
...
@@ -10,4 +18,9 @@ public class VridgeDocsApplication {
SpringApplication
.
run
(
VridgeDocsApplication
.
class
,
args
);
}
@Bean
RouterFunction
<
ServerResponse
>
routerFunction
()
{
return
route
(
GET
(
"/api/swagger"
),
req
->
ServerResponse
.
temporaryRedirect
(
URI
.
create
(
"/swagger-ui/index.html"
)).
build
());
}
}
docs-back/src/main/java/com/vazil/vridge/docs/controller/GuideController.java
View file @
9c6fa42e
...
...
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
@AllArgsConstructor
@Log4j2
@RequestMapping
(
"/api"
)
@CrossOrigin
@Api
(
"가이드 API V1"
)
public
class
GuideController
{
GuideService
guideService
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment