Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
8583628b
Commit
8583628b
authored
4 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增测试方法
parent
12d721e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
LoginController.cs
Edu.WebApi/Controllers/User/LoginController.cs
+9
-1
Startup.cs
Edu.WebApi/Startup.cs
+1
-0
No files found.
Edu.WebApi/Controllers/User/LoginController.cs
View file @
8583628b
...
@@ -42,6 +42,14 @@ namespace Edu.WebApi.Controllers.User
...
@@ -42,6 +42,14 @@ namespace Edu.WebApi.Controllers.User
/// </summary>
/// </summary>
private
readonly
PublicModule
publicModule
=
new
PublicModule
();
private
readonly
PublicModule
publicModule
=
new
PublicModule
();
[
HttpGet
]
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
Test
()
{
return
ApiResult
.
Success
();
}
/// <summary>
/// <summary>
/// 用户登录
/// 用户登录
/// </summary>
/// </summary>
...
...
This diff is collapsed.
Click to expand it.
Edu.WebApi/Startup.cs
View file @
8583628b
...
@@ -50,6 +50,7 @@ namespace Edu.WebApi
...
@@ -50,6 +50,7 @@ namespace Edu.WebApi
"http://mall.oytour.com"
,
"http://mall.oytour.com"
,
"http://testmall.oytour.com"
,
"http://testmall.oytour.com"
,
"http://yx.oytour.com"
,
"http://yx.oytour.com"
,
"http://edu.oytour.com"
,
};
};
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
}
}
...
...
This diff is collapsed.
Click to expand it.
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