Add expiration handler

This commit is contained in:
Rachel Fenichel
2020-08-18 15:22:33 -07:00
parent 34aff27f96
commit 030ad3e836
2 changed files with 52 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ limitations under the License.
"""
import storage
import expiration
# Route to requested handler.
@@ -23,6 +24,8 @@ def app(environ, start_response):
return redirect(environ, start_response)
if environ["PATH_INFO"] == "/storage":
return storage.app(environ, start_response)
if environ["PATH_INFO"] == "/expiration":
return retention_job.app(environ, start_response)
start_response("404 Not Found", [])
return [b"Page not found."]