Commit 19b01017 authored by Joel Collins's avatar Joel Collins
Browse files

Make action links external

parent ae784688
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
"""
Top-level representation of enabled actions
"""

from flask import url_for
from . import camera, stage, system

from labthings.server.view import View
@@ -74,7 +74,7 @@ class ActionsView(View):
            d = {
                "links": {
                    "self": {
                        "href": current_labthing().url_for(action["view_class"]),
                        "href": url_for(action["view_class"].endpoint, _external=True),
                        "mimetype": "application/json",
                        **description_from_view(action["view_class"]),
                    }