update last_updated when calling the API with a token

This commit is contained in:
Howl
2016-12-01 23:16:36 +01:00
parent dd536eebed
commit 256f082340
3 changed files with 60 additions and 13 deletions

View File

@@ -74,6 +74,9 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine {
DB: conf.RedisDB,
})
// token updater
go tokenUpdater(db)
api := r.Group("/api")
{
p := api.Group("/")