Added: trunk/Tools/BuildSlaveSupport/ews-app/ews/urls.py (0 => 237907)
--- trunk/Tools/BuildSlaveSupport/ews-app/ews/urls.py (rev 0)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/urls.py 2018-11-07 02:08:11 UTC (rev 237907)
@@ -0,0 +1,40 @@
+# Copyright (C) 2018 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+from django.conf.urls import url
+
+from ews.views.index import Index
+from ews.views.patch import Patch
+from ews.views.results import Results
+from ews.views.statusbubble import StatusBubble
+
+app_name = 'ews'
+urlpatterns = [
+ # ex: /
+ url(r'^$', Index.as_view(), name='index'),
+ # ex: /patch/5
+ url(r'^patch/(?P<patchid>[0-9]+)/$', Patch.as_view(), name='patch'),
+ # ex: /patch/5/results
+ url(r'^patch/(?P<patchid>[0-9]+)/results$', Results.as_view(), name='results'),
+ # ex: /status-bubble/5
+ url(r'^status-bubble/(?P<patchid>[0-9]+)/$', StatusBubble.as_view(), name='statusbubble'),
+]
Modified: trunk/Tools/BuildSlaveSupport/ews-app/ews-app/urls.py (237906 => 237907)
--- trunk/Tools/BuildSlaveSupport/ews-app/ews-app/urls.py 2018-11-07 01:59:52 UTC (rev 237906)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews-app/urls.py 2018-11-07 02:08:11 UTC (rev 237907)
@@ -35,9 +35,10 @@
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
-from django.conf.urls import url
+from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
+ url(r'^', include('ews.urls')),
]
Modified: trunk/Tools/ChangeLog (237906 => 237907)
--- trunk/Tools/ChangeLog 2018-11-07 01:59:52 UTC (rev 237906)
+++ trunk/Tools/ChangeLog 2018-11-07 02:08:11 UTC (rev 237907)
@@ -1,3 +1,13 @@
+2018-11-06 Aakash Jain <aakash_j...@apple.com>
+
+ [ews-app] Add URL configuration for OpenSource EWS Django app
+ https://bugs.webkit.org/show_bug.cgi?id=191132
+
+ Rubber-stamped by Lucas Forschler.
+
+ * BuildSlaveSupport/ews-app/ews-app/urls.py: Added entry for ews.urls.
+ * BuildSlaveSupport/ews-app/ews/urls.py: Added.
+
2018-11-06 Youenn Fablet <you...@apple.com>
Make mDNS ICE Candidate an experimental flag again