Skip to content

Commit

Permalink
Add well-known support
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Nov 11, 2024
1 parent 26dd622 commit f78f00f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,7 @@ def sitemap():
resp = app.make_response(xml)
resp.mimetype = "text/xml"
return resp

@app.route("/.well-known/<file>")
def wellknown(file):
return send_from_directory(app.static_folder, ("well-known/%s" % file))
7 changes: 7 additions & 0 deletions server/tests/routes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,10 @@ def test_tech_report_drilldown_wordpress(client):
"/reports/techreport/drilldown?tech=WordPress&geo=ALL&rank=ALL"
)
assert response.status_code == 200


def test_well_known_atproto_did(client):
response = client.get(
"/.well-known/atproto-did"
)
assert response.status_code == 200

0 comments on commit f78f00f

Please sign in to comment.