增加社区列表接口,任务相关接口修改
This commit is contained in:
@@ -15,6 +15,12 @@ import (
|
||||
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
// 获取社区列表
|
||||
Method: http.MethodGet,
|
||||
Path: "/community",
|
||||
Handler: task.GetCommunityListHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
// 获取任务列表
|
||||
Method: http.MethodGet,
|
||||
@@ -36,7 +42,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
{
|
||||
// 校验任务结果
|
||||
Method: http.MethodGet,
|
||||
Path: "/task/:id",
|
||||
Path: "/task",
|
||||
Handler: task.VerifyTaskResultHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user