Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions saas/lib/fizzy/saas/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class Engine < ::Rails::Engine
app.config.assets.paths << root.join("app/assets/stylesheets")
end

initializer "fizzy_saas.public_files" do |app|
app.middleware.insert_after ActionDispatch::Static, ActionDispatch::Static, root.join("public").to_s,
headers: app.config.public_file_server.headers
end

initializer "fizzy.saas.routes", after: :add_routing_paths do |app|
# Routes that rely on the implicit account tenant should go here instead of in +routes.rb+.
app.routes.prepend do
Expand Down
11 changes: 11 additions & 0 deletions saas/public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "do.fizzy.app",
"sha256_cert_fingerprints":
["3B:17:E4:FF:F0:2E:E0:CE:D7:94:F9:9E:71:3C:A8:14:7C:FA:B7:F2:99:35:98:03:E9:E0:EB:B3:6E:12:E2:0F"]
}
}
]