fix: some api bug
This commit is contained in:
@@ -21,6 +21,12 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
Path: "/",
|
||||
Handler: game.ListGamesHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
// 创建游戏
|
||||
Method: http.MethodPost,
|
||||
Path: "/",
|
||||
Handler: game.CreateGameHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
// 获取游戏详情
|
||||
Method: http.MethodGet,
|
||||
|
||||
Reference in New Issue
Block a user