mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-16 05:28:28 +00:00
15 lines
359 B
Ruby
15 lines
359 B
Ruby
class DataQueriesController < ApplicationController
|
|
|
|
def index
|
|
@data_queries = DataQuery.where(app_id: params[:app_id])
|
|
end
|
|
|
|
def create
|
|
@data_query = DataQuery.create(
|
|
name: params[:name],
|
|
kind: params[:kind],
|
|
options: params[:options],
|
|
app_id: params[:app_id]
|
|
)
|
|
end
|
|
end
|