Class: LinkIO::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- LinkIO::Engine
- Defined in:
- lib/linkio/engine.rb
Overview
Mountable Rails engine that wires the LinkIO endpoints into a Rails app. Mount it at the domain root so the /.well-known verification files are served correctly:
# config/routes.rb
mount LinkIO::Engine => "/"
Configure the global client in an initializer (see the install generator):
# config/initializers/linkio.rb
LinkIO.configure do |config|
config.domain = "example.com"
# ...
config.storage = LinkIO::Storage::InMemoryStorage.new
end