Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 57a67c4e
authored
6 years ago
by
熊付
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2
1 parent
4a55b380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
View file @
57a67c4
...
...
@@ -10,7 +10,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@RestController
@RequestMapping
(
value
=
"/api/v1/financial/contracts"
)
public
class
BaseController
extends
WebMvcConfigurerAdapter
{
public
void
assCoresMappings
(
CorsRegistry
corsRegistry
)
{
@Override
public
void
addCorsMappings
(
CorsRegistry
corsRegistry
)
{
corsRegistry
.
addMapping
(
"/api/v1/financial/contracts/**"
)
.
allowedOrigins
(
"*"
)
.
allowedMethods
(
"GET"
,
"POST"
,
"PUT"
,
"OPTION"
,
"DELETE"
,
"PATCH"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment