Controller for all gaming functions
        
        
            
- Source:
Methods
(static) addGameToUser(req, res, next)
    POST-Request add games to the user
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str JSON with more infos
    
        
            
    
    
    (static) deleteGame(req, res, next)
    POST-Request add games to the user
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str JSON with more infos
    
        
            
    
    
    (static) getGameByName(req, res, next)
    GET-Request get infos for a Game
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str object as JSON
    
        
            
    
    
    (static) insertNewGame(req, res, next)
    POST-Request to create a new game
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str JSON with more infos
    
        
            
    
    
    (static) showGames(req, res, next)
    GET-Render the Games for the user
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    (str|redirect) rendered HTML string or redirect to /gaming
    
        
            
    
    
    (static) showManageGames(req, res, next)
    GET-Render for managing the games
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str rendered HTML string
    
        
            
    
    
    (static) showNewGames(req, res, next)
    GET-Render to add a new game to the db
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str rendered HTML string
    
        
            
    
    
    (static) showPlatforms(req, res, next)
    GET-Render the platforms
    Parameters:
| Name | Type | Description | 
|---|---|---|
| req | Request | The req object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on | 
| res | Response | The res object represents the HTTP response that an Express app sends when it gets an HTTP request. | 
| next | * | Control to the next handler | 
- Source:
Returns:
    str rendered HTML string