mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 23:14:10 +00:00
Move AI enable endpoint to user scope
Replace /api/v1/auth/enable_ai with /api/v1/user/enable_ai by moving the action into Api::V1::UsersController, updating Flutter client calls, tests, and OpenAPI docs.
This commit is contained in:
@@ -51,7 +51,9 @@ RSpec.describe 'API V1 Auth', type: :request do
|
||||
id: { type: :string, format: :uuid },
|
||||
email: { type: :string },
|
||||
first_name: { type: :string },
|
||||
last_name: { type: :string }
|
||||
last_name: { type: :string },
|
||||
ui_layout: { type: :string, enum: %w[dashboard intro] },
|
||||
ai_enabled: { type: :boolean }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -110,7 +112,9 @@ RSpec.describe 'API V1 Auth', type: :request do
|
||||
id: { type: :string, format: :uuid },
|
||||
email: { type: :string },
|
||||
first_name: { type: :string },
|
||||
last_name: { type: :string }
|
||||
last_name: { type: :string },
|
||||
ui_layout: { type: :string, enum: %w[dashboard intro] },
|
||||
ai_enabled: { type: :boolean }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,7 +156,9 @@ RSpec.describe 'API V1 Auth', type: :request do
|
||||
id: { type: :string, format: :uuid },
|
||||
email: { type: :string },
|
||||
first_name: { type: :string },
|
||||
last_name: { type: :string }
|
||||
last_name: { type: :string },
|
||||
ui_layout: { type: :string, enum: %w[dashboard intro] },
|
||||
ai_enabled: { type: :boolean }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -209,4 +215,6 @@ RSpec.describe 'API V1 Auth', type: :request do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user