Add Sequences to API.

This commit is contained in:
niiyz
2015-11-13 21:36:13 +09:00
parent 4c1bb758ce
commit 232790b452
4 changed files with 12 additions and 0 deletions

View File

@@ -164,6 +164,11 @@ func GetConnectionInfo(c *gin.Context) {
c.JSON(200, res.Format()[0])
}
func GetSequences(c *gin.Context) {
res, err := DbClient.Sequences()
serveResult(res, err, c)
}
func GetActivity(c *gin.Context) {
res, err := DbClient.Activity()
serveResult(res, err, c)