Sha256: 00a7d79bec76df31c1b9fe99c761c832c37125d980d24b757fc5f0a00ab737af

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

require 'sinatra'
require 'sinatra/reloader'
#require 'sinatra/cookies'
#require 'sinatra/session'

require 'tagz'
require 'sekrets'


enable :sessions

# - get password
# - decrypt file
# - editor
# - save file
# - exit button

get '/' do
  if session[:key].to_s.strip.empty?
    erb :key
  else
    erb :index
  end
end

post '/' do
  raise params.inspect
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sekrets-1.9.0 app/server.rb
sekrets-1.8.1 app/server.rb
sekrets-1.8.0 app/server.rb