Skip to content

[bug] 方法名带 Refresh 会出现 405错误 #4

Description

@dogvane

错误的方法:GetRefreshWarehouseAsync,
跟入app.MapFast(); 方法
var wWarehouse = app.MapGroup("/api/Warehouse");
wWarehouse.MapGet("/RefreshWarehouse",
async (KoalaWiki.Services.WarehouseService wWarehouse, string wid) => await wWarehouse.GetRefreshWarehouseAsync(wid));
反编译的结果检查下来没有问题,但是http的状态就是返回 405

方法名改为 GetRetryWarehouseAsync 就正常了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions