mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
10 lines
258 B
Ruby
10 lines
258 B
Ruby
class FoldersController < ApplicationController
|
|
|
|
def index
|
|
@folders = Folder.where(organization: @current_user.organization)
|
|
end
|
|
|
|
def create
|
|
Folder.create(name: params[:name], organization: @current_user.organization)
|
|
end
|
|
end
|