12345678910111213141516171819 |
- package router
-
- import (
- "git.links123.net/Slate/CorpusAI/cmd/http/handler"
- )
-
- func registerV1Router() {
- // Auth
- public := r.Group("/v1")
- //auth := r.Group("/v1").Use(middleware.Auth())
- //optionAuth := r.Group("/v1").Use(middleware.OptionalAuth())
-
- public.GET("/en/audio_base_url", handler.GetAudioBaseUrl)
-
- //Text string, LanguageCode, Gender string
- public.GET("/en/tts", handler.TextToSpeechMain)
- public.POST("/en/stt", handler.SpeechToText)
- }
|