.NET MinimalApi

583 阅读1分钟

路由定义

get请求

app.MapGet("/",()=>"hello world!");

image.png

image.png

post请求

app.MapPost("post",()=>"post");

image.png

image.png