mirror of
https://github.com/fiodarsazanavets/aspire-13-examples.git
synced 2026-06-20 12:23:14 +00:00
Add RequireAuthorization
This commit is contained in:
@@ -602,7 +602,7 @@ app.MapPost("/api/orders", async (
|
||||
OrderId = orderId,
|
||||
TotalAmount = totalAmount
|
||||
});
|
||||
});
|
||||
}).RequireAuthorization();
|
||||
|
||||
app.MapDefaultEndpoints();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user