add dad jokes

This commit is contained in:
2023-06-24 10:34:49 -04:00
parent b01b26b12d
commit 31a71fac7f
11 changed files with 193 additions and 46 deletions

View File

@@ -40,6 +40,9 @@ func main() {
jokes := v1.Group("/jokes")
{
jokes.GET("dadjoke", c.GetDadJoke)
jokes.Use(c.AuthMiddleware([]string{"rw-jokes"}, c.Cfg.Groupsenv))
jokes.POST("dadjoke", c.PostDadJoke)
}
openai := v1.Group("/openai")
{