mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-20 15:38:23 +00:00
14 lines
313 B
Ruby
14 lines
313 B
Ruby
class AppsController < ApplicationController
|
|
|
|
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
|