mirror of
https://github.com/amiaopensource/ffmprovisr.git
synced 2024-11-07 14:07:22 +01:00
23 lines
427 B
Ruby
23 lines
427 B
Ruby
class GenerateController < ApplicationController
|
|
enable :sessions
|
|
|
|
get '/' do
|
|
erb :'index'
|
|
end
|
|
|
|
post '/' do
|
|
@input = params[:input]
|
|
# @output = params[:input][:video_format]
|
|
# session['generate'] = params[:input]
|
|
# @output = Generate.new(session['generate'])
|
|
@middle = Generate.new(@input)
|
|
@output = @middle.output
|
|
erb :'generate'
|
|
end
|
|
|
|
get '/generate' do
|
|
erb :'index'
|
|
end
|
|
|
|
|
|
end |