Class: Refile::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/refile/app.rb

Overview

A Rack application which can be mounted or run on its own.

Examples:

mounted in Rails

Rails.application.routes.draw do
  mount Refile::App.new, at: "attachments", as: :refile_app
end

as standalone app

require "refile"

run Refile::App.new