One more try at getting the currect url.
This commit is contained in:
parent
03c7a5eee2
commit
5924ee48f4
|
@ -156,7 +156,7 @@ class FileSchema(Schema):
|
|||
|
||||
def get_url(self, obj):
|
||||
token = 'not_available'
|
||||
base_url = connexion.request.host_url
|
||||
base_url = flask.app.request.url_root
|
||||
if obj.id is None:
|
||||
return "" # We can't return a url for a file that isn't stored yet.
|
||||
file_url = url_for("/v1_0.crc_api_file_get_file_data_link", file_id=obj.id)
|
||||
|
|
Loading…
Reference in New Issue