moto/moto/sqs/urls.py

12 lines
287 B
Python
Raw Normal View History

from __future__ import unicode_literals
from .responses import SQSResponse
2013-02-23 22:26:46 -05:00
2019-10-31 08:44:26 -07:00
url_bases = ["https?://(.*?)(queue|sqs)(.*?).amazonaws.com"]
2013-02-23 22:26:46 -05:00
dispatch = SQSResponse().dispatch
2013-03-05 08:14:43 -05:00
url_paths = {
2019-10-31 08:44:26 -07:00
"{0}/$": dispatch,
"{0}/(?P<account_id>\d+)/(?P<queue_name>[a-zA-Z0-9\-_\.]+)": dispatch,
2013-02-23 22:26:46 -05:00
}