added getting words
This commit is contained in:
		| @@ -4,10 +4,11 @@ import ( | ||||
| 	"net/http" | ||||
|  | ||||
| 	"gitea.elara.ws/Hazel/hangman/internal/game" | ||||
| 	"gitea.elara.ws/Hazel/hangman/internal/words" | ||||
| 	"github.com/labstack/echo/v4" | ||||
| ) | ||||
|  | ||||
| func CreateSession(c echo.Context) error { | ||||
| 	s := game.NewSession() | ||||
| 	s := game.NewSession(words.GetRandomWord()) | ||||
| 	return c.JSON(http.StatusOK, s) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user