mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-08 14:14:27 -05:00
12 lines
304 B
Python
12 lines
304 B
Python
from werkzeug.routing import BaseConverter
|
|
|
|
from app.models.service import Service
|
|
|
|
|
|
class TemplateTypeConverter(BaseConverter):
|
|
regex = "(?:{})".format("|".join(Service.TEMPLATE_TYPES))
|
|
|
|
|
|
class SimpleDateTypeConverter(BaseConverter):
|
|
regex = r"([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))"
|