diff --git a/emulator.py b/emulator.py index 2435031..643d8e0 100644 --- a/emulator.py +++ b/emulator.py @@ -1,7 +1,7 @@ #!/usr/bin/env python2 # # Copyright Notice: -# Copyright 2016-2019 DMTF. All rights reserved. +# Copyright 2016-2021 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md # Redfish Interface Emulator - main @@ -337,6 +337,10 @@ def reset(): def index(): return render_template('index.html') +@g.app.route('/redfish') +def serviceInfo(): + return render_template('service.json') + @g.app.route('/browse.html') def browse(): return render_template('browse.html') diff --git a/templates/service.json b/templates/service.json new file mode 100644 index 0000000..301f29c --- /dev/null +++ b/templates/service.json @@ -0,0 +1,3 @@ +{ + "v1": "/redfish/v1/" +}