2018-11-20 00:32:55 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
func getAllCards(c *gin.Context) {
|
2019-01-06 00:24:09 +01:00
|
|
|
c.Header("Content-Type", "application/json")
|
|
|
|
c.JSON(http.StatusOK, cards)
|
2018-11-20 00:32:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func addNewCard() {
|
|
|
|
fmt.Println("Dodanie do couchDB nowej karty pytania lub odowiedzi")
|
|
|
|
}
|
|
|
|
|
|
|
|
func addNewUser() {
|
|
|
|
fmt.Println("Rejestracja nowego użytkownika")
|
|
|
|
}
|
|
|
|
|
|
|
|
func loginUser() {
|
|
|
|
fmt.Println("Logowanie użytkownika")
|
|
|
|
}
|