mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-09 18:21:02 +00:00
18 lines
404 B
Ruby
18 lines
404 B
Ruby
class AppsController < ApplicationController
|
|
|
|
def index
|
|
@apps = App.where(organization: @current_user.organization)
|
|
end
|
|
|
|
def create
|
|
@app = App.create({ name: 'Untitled app', organization: @current_user.organization })
|
|
end
|
|
|
|
def show
|
|
@app = App.find params[:id]
|
|
end
|
|
|
|
def update
|
|
@app = App.update(definition: params[:definition])
|
|
end
|
|
end
|