Skip to content

Commit 8a9ae12

Browse files
committed
Disable chatbot in prod
1 parent c3ad8ba commit 8a9ae12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/cadet_web/router.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ defmodule CadetWeb.Router do
7676
end
7777

7878
# LLM-related endpoints
79-
scope "/v2/chats", CadetWeb do
80-
pipe_through([:api, :auth, :ensure_auth, :rate_limit])
79+
# scope "/v2/chats", CadetWeb do
80+
# pipe_through([:api, :auth, :ensure_auth, :rate_limit])
8181

82-
post("", ChatController, :init_chat)
83-
post("/:conversationId/message", ChatController, :chat)
84-
end
82+
# post("", ChatController, :init_chat)
83+
# post("/:conversationId/message", ChatController, :chat)
84+
# end
8585

8686
# Authenticated Pages with course
8787
scope "/v2/courses/:course_id", CadetWeb do

0 commit comments

Comments
 (0)