This repository was archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad714cd
commit d6f4171
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace SecurityTest.Controllers | ||
{ | ||
[Area("ActivityLog")] | ||
[Route("api/securitytest")] | ||
public class MyController : Controller | ||
{ | ||
private readonly Class1 myClass; | ||
|
||
public MyController(Class1 myClass) | ||
{ | ||
this.myClass = myClass; | ||
} | ||
|
||
[HttpGet("test")] | ||
public IActionResult Test(string title, string contents, string user) | ||
{ | ||
myClass.Method1(title, contents, user); | ||
return Ok("ok"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters