Skip to content

Commit 7cccabc

Browse files
authored
Add support for queries to /redfish
Add support for queries to /redfish
1 parent cd2e302 commit 7cccabc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

emulator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python2
22
#
33
# Copyright Notice:
4-
# Copyright 2016-2019 DMTF. All rights reserved.
4+
# Copyright 2016-2021 DMTF. All rights reserved.
55
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md
66

77
# Redfish Interface Emulator - main
@@ -337,6 +337,10 @@ def reset():
337337
def index():
338338
return render_template('index.html')
339339

340+
@g.app.route('/redfish')
341+
def serviceInfo():
342+
return render_template('service.json')
343+
340344
@g.app.route('/browse.html')
341345
def browse():
342346
return render_template('browse.html')

0 commit comments

Comments
 (0)