Flask app progress
This commit is contained in:
parent
c4fe022d42
commit
b0994069ad
38 changed files with 6631 additions and 220 deletions
25
docker/router-dash/app/validate.py
Normal file
25
docker/router-dash/app/validate.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
validate.py -- Flask app re-export of the shared validation module.
|
||||
|
||||
~/router/validation.py is volume-mounted to /app/validation.py by
|
||||
docker-compose, making it directly importable. Action scripts import
|
||||
this module (validate.*) so they are insulated from the shared file's
|
||||
location and name.
|
||||
"""
|
||||
from validation import (
|
||||
VALID_PROTOCOLS,
|
||||
VALID_BLOCKLIST_FORMATS,
|
||||
ip,
|
||||
ip_or_cidr,
|
||||
port,
|
||||
banned_ip,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
'VALID_PROTOCOLS',
|
||||
'VALID_BLOCKLIST_FORMATS',
|
||||
'ip',
|
||||
'ip_or_cidr',
|
||||
'port',
|
||||
'banned_ip',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue