|
@@ -1,23 +1,16 @@
|
|
|
package front
|
|
|
|
|
|
import (
|
|
|
- "encoding/gob"
|
|
|
"fmt"
|
|
|
. "jy/mongodbutil"
|
|
|
. "jy/router"
|
|
|
. "jy/util"
|
|
|
- "time"
|
|
|
|
|
|
"github.com/gin-contrib/sessions"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
- "gopkg.in/mgo.v2/bson"
|
|
|
)
|
|
|
|
|
|
func init() {
|
|
|
- gob.Register(&map[string]interface{}{})
|
|
|
- gob.Register(&[]map[string]interface{}{})
|
|
|
- gob.Register(&time.Time{})
|
|
|
- gob.Register(bson.ObjectIdHex("5b8781f5904a2ea61544f852"))
|
|
|
front := Router.Group("/")
|
|
|
{
|
|
|
front.Static("/front", "./web/templates/front")
|