Text to Speech Speech to Text

1234567891011121314151617
  1. package middleware
  2. import (
  3. "git.links123.net/links123.com/pkg/middleware/auth"
  4. "git.links123.net/Slate/CorpusAI/config"
  5. "git.links123.net/Slate/CorpusAI/service/store/cache"
  6. "github.com/gin-gonic/gin"
  7. )
  8. func Auth() gin.HandlerFunc {
  9. return auth.Auth(config.C.App.Secret, cache.AuthSessionStore())
  10. }
  11. func OptionalAuth() gin.HandlerFunc {
  12. return auth.OptionalAuth(config.C.App.Secret)
  13. }