Skip to content

Commit b3734fb

Browse files
committed
Wire up routes
1 parent 055006f commit b3734fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/trento_web/router.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ defmodule TrentoWeb.Router do
239239
post "/", PersonalAccessTokensController, :create_personal_access_token
240240
delete "/:token_id", PersonalAccessTokensController, :revoke_personal_access_token
241241
end
242+
243+
if Application.compile_env!(:trento, :ai)[:enabled] do
244+
scope "/ai_configuration" do
245+
post "/", AIConfigurationController, :create_ai_configuration
246+
patch "/", AIConfigurationController, :update_ai_configuration
247+
end
248+
end
242249
end
243250

244251
get "/abilities", AbilityController, :index

0 commit comments

Comments
 (0)