初始化项目文件
This commit is contained in:
15
api_iris/service/api/backgammonExport.go
Normal file
15
api_iris/service/api/backgammonExport.go
Normal file
@ -0,0 +1,15 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris/v12"
|
||||
"main/jwtSet"
|
||||
)
|
||||
|
||||
func Backgammon(party iris.Party) {
|
||||
party.Get("/", getRooms)
|
||||
party.Post("/", jwtSet.Jwt.Serve, addRoom)
|
||||
party.Get("/{id:int}", getStatus)
|
||||
party.Put("/{id:int}", jwtSet.Jwt.Serve, joinRoom)
|
||||
party.Delete("/{id:int}", jwtSet.Jwt.Serve, delRoom)
|
||||
party.Post("/{id:int}", jwtSet.Jwt.Serve, addPawn)
|
||||
}
|
Reference in New Issue
Block a user