Skip to content

Commit

Permalink
Add assets-json link for iOs universal links
Browse files Browse the repository at this point in the history
  • Loading branch information
kackogut committed Sep 5, 2024
1 parent 6048c59 commit 830405b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/apple-app-site-association.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"applinks": {
"apps": [],
"details": [
{
"appIDs": [
"8W6SLNLH57.com.nowu.app
],
"paths": [
"*"
],
"components": [
{
"/": "/*"
}
]
}
]
},
"webcredentials": {
"apps": [
"8W6SLNLH57.com.nowu.app"
]
}
}
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.body(include_str!("assetlinks.json"))
})),
)
.at(
"/.well-known/apple-app-site-association",
get(make_sync(move |_| {
Response::builder()
.content_type("application/json")
.body(include_str!("apple-app-site-association.json"))
})),
)
.nest("/api", create_management_service(&base_url))
.nest("/", create_link_router_service())
.data(AppContext {
Expand Down

0 comments on commit 830405b

Please sign in to comment.