Skip to content

Commit

Permalink
Make api functions public
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 5, 2024
1 parent f2b9093 commit 1d7e91a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions game/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func init() {
GameResource = &Resource{
Load: loadGame,
Delete: gameMasterDeleteGame,
Create: createGame,
Create: CreateGame,
Update: gameMasterUpdateGame,
Listers: []Lister{
{
Expand Down Expand Up @@ -887,7 +887,7 @@ func gameMasterDeleteGame(w ResponseWriter, r Request) (*Game, error) {
return game, nil
}

func createGame(w ResponseWriter, r Request) (*Game, error) {
func CreateGame(w ResponseWriter, r Request) (*Game, error) {
ctx := appengine.NewContext(r.Req())

user, ok := r.Values()["user"].(*auth.User)
Expand Down
6 changes: 3 additions & 3 deletions game/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var OrderResource *Resource

func init() {
OrderResource = &Resource{
Create: createOrder,
Create: CreateOrder,
Update: updateOrder,
Delete: deleteOrder,
CreatePath: "/Game/{game_id}/Phase/{phase_ordinal}/Order",
Expand Down Expand Up @@ -250,15 +250,15 @@ func updateOrder(w ResponseWriter, r Request) (*Order, error) {
}

func createAndCorroborate(w ResponseWriter, r Request) error {
_, err := createOrder(w, r)
_, err := CreateOrder(w, r)
if err != nil {
return err
}

return corroboratePhase(w, r)
}

func createOrder(w ResponseWriter, r Request) (*Order, error) {
func CreateOrder(w ResponseWriter, r Request) (*Order, error) {
ctx := appengine.NewContext(r.Req())

user, ok := r.Values()["user"].(*auth.User)
Expand Down

0 comments on commit 1d7e91a

Please sign in to comment.