forked from SoDOff-Project/sodoff
add missing endpoint to proxy
This commit is contained in:
parent
d0eacb75b6
commit
abe674ccf8
@ -71,7 +71,8 @@ methods = [
|
|||||||
'SetAchievementByEntityIDs',
|
'SetAchievementByEntityIDs',
|
||||||
'UseInventory',
|
'UseInventory',
|
||||||
'DeleteProfile',
|
'DeleteProfile',
|
||||||
'DeleteAccountNotification'
|
'DeleteAccountNotification',
|
||||||
|
'SetUserAchievementAndGetReward',
|
||||||
]
|
]
|
||||||
|
|
||||||
def routable(path):
|
def routable(path):
|
||||||
|
@ -11,10 +11,6 @@ public class VikingSession : Attribute, IAsyncActionFilter {
|
|||||||
public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) {
|
public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) {
|
||||||
DBContext ctx = ((AchievementController)context.Controller).ctx;
|
DBContext ctx = ((AchievementController)context.Controller).ctx;
|
||||||
|
|
||||||
foreach (var a in context.ActionArguments.Keys) {
|
|
||||||
Console.WriteLine(a);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!context.HttpContext.Request.Form.ContainsKey("apiToken")) {
|
if (!context.HttpContext.Request.Form.ContainsKey("apiToken")) {
|
||||||
context.Result = new UnauthorizedObjectResult("Unauthorized") { StatusCode = 403 };
|
context.Result = new UnauthorizedObjectResult("Unauthorized") { StatusCode = 403 };
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user