created some structure and a concept
This commit is contained in:
		
							
								
								
									
										13
									
								
								internal/rest_handler/create_session.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								internal/rest_handler/create_session.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| package rest_handler | ||||
|  | ||||
| import ( | ||||
| 	"net/http" | ||||
|  | ||||
| 	"gitea.elara.ws/Hazel/hangman/internal/session" | ||||
| 	"github.com/labstack/echo/v4" | ||||
| ) | ||||
|  | ||||
| func CreateSession(c echo.Context) error { | ||||
| 	s := session.NewSession() | ||||
| 	return c.JSON(http.StatusOK, s) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user