Default
Default handler for ODIN server.
This module provides a default URL ('/') handler for the ODIN server, redirecting the client to the static page handler.
Tim Nicholls, STFC Application Engineering
DefaultHandler
Bases: StaticFileHandler
Default URL handler for ODIN.
This is a simple subclass of the StaticFileHandler to serve static files for the default route, i.e. to give a simple top-level view aimed at broswers.
Source code in src/odin_control/http/routes/default.py
DefaultRoute
Bases: Route
Default URL Route for the ODIN server.
Source code in src/odin_control/http/routes/default.py
__init__(path, default_filename='index.html')
Initialise the default route, adding a handler.
This route provides the default view for the ODIN server, rendering static content suitable for use in a browser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
path to serve static content from |
required | |
default_filename
|
default filename serve for directory requests |
'index.html'
|