Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
archer-bao opened this issue Jan 3, 2019 · 3 comments
Open

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

archer-bao opened this issue Jan 3, 2019 · 3 comments

Comments

@archer-bao
Copy link

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

@dotqi
Copy link

dotqi commented Jan 3, 2019

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

@archer-bao
Copy link
Author

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

@it512
Copy link

it512 commented Jan 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants