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',
|
||||
'UseInventory',
|
||||
'DeleteProfile',
|
||||
'DeleteAccountNotification'
|
||||
'DeleteAccountNotification',
|
||||
'SetUserAchievementAndGetReward',
|
||||
]
|
||||
|
||||
def routable(path):
|
||||
|
@ -11,10 +11,6 @@ public class VikingSession : Attribute, IAsyncActionFilter {
|
||||
public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) {
|
||||
DBContext ctx = ((AchievementController)context.Controller).ctx;
|
||||
|
||||
foreach (var a in context.ActionArguments.Keys) {
|
||||
Console.WriteLine(a);
|
||||
}
|
||||
|
||||
if (!context.HttpContext.Request.Form.ContainsKey("apiToken")) {
|
||||
context.Result = new UnauthorizedObjectResult("Unauthorized") { StatusCode = 403 };
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user