http://localhost:8084/v1/expand?shorturl=222222&longurl=2343423
beego.Router("/v1/match",&match.MatchController{})
beego.Router("/v1/reg", &user.RegController{})
beego.Router("/v1/log", &user.LogController{})
v1 /../ 相当于路径
match 相当于php里面的文件名一样 。
http://localhost/v1/log/match.php?username=aaaaaaaa&pass=ab9c64e8854703c14375abc9695b56ac&phone1=dsfsdfet35grffdg3q4tg34g&phone2=dfasdfadfadfsdffasdfsdfsfsd
本文介绍了使用Beego框架进行路由配置的方法,展示了如何通过简单的代码实现不同功能模块的URL映射,包括匹配、注册和日志记录等功能。
695

被折叠的 条评论
为什么被折叠?



