func RegisterAPIRoutes(router *gin.Engine, group *gin.RouterGroup) {
	group.POST("/admin/query", checkAdmin(), apiAdminQuery(router))
	group.POST("/admin/flush", checkAdmin(), apiAdminFlush(router))
	group.POST("/admin/reindex", checkAdmin(), apiAdminReindex(router))
	group.POST("/admin/scrape", checkAdmin(), apiAdminScrape(router))
	group.POST("/admin/test_mail", checkAdmin(), apiAdminTestMail(router))
}
/*
RegisterAPIRoutes registers all API routes with the given router instance
package admin
import (
	"github.com/gin-gonic/gin"
	log "github.com/golang/glog"
	"github.com/muety/kitsquid/app/common/errors"
	"github.com/muety/kitsquid/app/config"
	"github.com/muety/kitsquid/app/events"
	"github.com/muety/kitsquid/app/scraping"
	"github.com/muety/kitsquid/app/users"
	"github.com/muety/kitsquid/app/util"
	"net/http"
	"strconv"
	"strings"
)
func RegisterRoutes(router *gin.Engine, group *gin.RouterGroup) {
	group.GET("/admin", checkAdmin(), getIndex(router))
}