add jwt middleware

This commit is contained in:
arnaucube
2019-06-15 10:12:21 +02:00
parent c38f7762f4
commit eec7019497
10 changed files with 178 additions and 58 deletions

View File

@@ -1,14 +1,6 @@
package gamesrv
import (
"fmt"
"testing"
"github.com/arnaucube/gogame/database"
"github.com/stretchr/testify/assert"
"gopkg.in/mgo.v2/bson"
)
/*
func TestCreatePlanet(t *testing.T) {
db, err := database.New("127.0.0.1:27017", "gogametests")
assert.Nil(t, err)
@@ -19,3 +11,4 @@ func TestCreatePlanet(t *testing.T) {
fmt.Println(solarSystem)
fmt.Println(planet)
}
*/