Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:58:21

0001 #!/usr/bin/env python
0002 #
0003 # Licensed under the Apache License, Version 2.0 (the "License");
0004 # You may not use this file except in compliance with the License.
0005 # You may obtain a copy of the License at
0006 # http://www.apache.org/licenses/LICENSE-2.0OA
0007 #
0008 # Authors:
0009 # - Wen Guan, <wen.guan@cern.ch>, 2019
0010 
0011 """----------------------
0012    Web service startup
0013 ----------------------"""
0014 
0015 import os
0016 import pprint
0017 os.environ['IDDS_CONFIG'] = '/opt/idds/etc/idds/idds.cfg'  # noqa: E402
0018 
0019 from idds.rest.v1.app import create_app    # noqa E402
0020 
0021 application = create_app()
0022 
0023 
0024 @application.route('/', defaults={'path': ''})
0025 @application.route('/<path:path>')
0026 def catchall(path):
0027     application.logger.info(pprint.pprint(application.get_request()))
0028     application.logger.info(pprint.pprint(application.get_request().endpoint))
0029     application.logger.info(pprint.pprint(application.get_request().url_rule))