@@ -172,10 +172,9 @@ def set_default_headers(self):
172172 self .set_header ('X-Frame-Options' , 'DENY' )
173173
174174
175- class GetServerTitle (BaseRequestHandler ):
175+ class GetServerConf (BaseRequestHandler ):
176176 def get (self ):
177- if self .application .server_title :
178- self .write (self .application .server_title )
177+ self .write (external_model .server_conf_to_external (self .application .server_config ))
179178
180179
181180class GetScripts (BaseRequestHandler ):
@@ -788,7 +787,7 @@ def init(server_config: ServerConfig,
788787
789788 downloads_folder = file_download_feature .get_result_files_folder ()
790789
791- handlers = [(r'/conf/title ' , GetServerTitle ),
790+ handlers = [(r'/conf' , GetServerConf ),
792791 (r'/scripts' , GetScripts ),
793792 (r'/scripts/([^/]*)' , ScriptConfigSocket ),
794793 (r'/scripts/([^/]*)/([^/]*)/list-files' , ScriptParameterListFiles ),
@@ -825,7 +824,7 @@ def init(server_config: ServerConfig,
825824
826825 application .auth = auth
827826
828- application .server_title = server_config . title
827+ application .server_config = server_config
829828 application .authorizer = authorizer
830829 application .downloads_folder = downloads_folder
831830 application .file_download_feature = file_download_feature
0 commit comments