mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Add expiration handler
This commit is contained in:
@@ -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."]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user