22
33# todo: the names of these variables need a bit of refactoring and normalising
44
5+ AUTH__EXCLUDED_PATHS = [ '/auth/auth-cookie-form' ,
6+ '/auth/set-auth-cookie' ,
7+ '/docs' , # Maybe also exclude docs
8+ '/openapi.json' ,
9+ '/config/status' ] # Health check endpoint
10+
511REGEX__SAFE__STR__FAST_API__TITLE = re .compile (r'[^a-zA-Z0-9 _()-]' )
612
713DEFAULT_ROUTES_PATHS = ['/' , '/config/status' , '/config/version' ]
1723 { 'http_methods' : ['GET' ], 'http_path' : '/redoc' , 'method_name' : 'redoc_html' }]
1824
1925
20- EXPECTED_ROUTES_METHODS = ['auth_cookie_form' ,
21- 'info' ,
26+ EXPECTED_ROUTES_METHODS = ['info' ,
2227 'redirect_to_docs' ,
2328 'routes__html' ,
2429 'routes__json' ,
2530 'set_auth_cookie' ,
31+ 'set_cookie_form' ,
2632 'status' ,
2733 'version' ]
2834EXPECTED_ROUTES_PATHS = ['/' ,
29- '/auth/auth-cookie-form' ,
3035 '/auth/set-auth-cookie' ,
36+ '/auth/set-cookie-form' ,
3137 '/config/info' ,
3238 '/config/routes/html' ,
3339 '/config/routes/json' ,
4147 { 'http_methods' : ['GET' ], 'http_path' : '/config/version' , 'method_name' : 'version' },
4248 { 'http_methods' : ['GET' ], 'http_path' : '/config/routes/json' , 'method_name' : 'routes__json' },
4349 { 'http_methods' : ['GET' ], 'http_path' : '/config/routes/html' , 'method_name' : 'routes__html' },
44- { 'http_methods' : ['GET' ], 'http_path' : '/auth/auth -cookie-form' , 'method_name' : 'auth_cookie_form' },
50+ { 'http_methods' : ['GET' ], 'http_path' : '/auth/set -cookie-form' , 'method_name' : 'set_cookie_form' },
4551 { 'http_methods' : ['POST' ], 'http_path' : '/auth/set-auth-cookie' , 'method_name' : 'set_auth_cookie' },]
4652ROUTES__STATIC_DOCS = [{'http_methods' : ['GET' , 'HEAD' ], 'http_path' : '/static-docs' , 'method_name' : 'static-docs' }]
4753ROUTES_PATHS__CONFIG = ['/config/status' , '/config/version' ]
0 commit comments