mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-15 21:18:24 +00:00
19 lines
455 B
Ruby
19 lines
455 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.find params[:id]
|
|
@app.update(definition: params[:definition], name: params[:name])
|
|
end
|
|
end
|