dotweb icon indicating copy to clipboard operation
dotweb copied to clipboard

路由注册:允许指定有且只有GET/POST方法

Open archer-bao opened this issue 5 years ago • 3 comments

希望增加一种路由注册方法指定:有且只有GET/POST方法 比如/upload路由,在GET时返回上传页面,在POST时进行上传动作。除此之外不允许其他方法。

archer-bao avatar Jan 03 '19 02:01 archer-bao

	mmc.GET("/putcustomer", ui.PutCustomer)
	mmc.POST("/putcustomer", api.PutCustomer)

dotqi avatar Jan 03 '19 03:01 dotqi

是注册一次,有且只有GET/POST方法。不是分开注册。

archer-bao avatar Jan 03 '19 06:01 archer-bao

这个需求有什么特殊的应用场景?

it512 avatar Jan 07 '19 15:01 it512