[ews-app] Add URL configuration for OpenSource EWS Django app
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2018 02:08:11 +0000 (02:08 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2018 02:08:11 +0000 (02:08 +0000)
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237907 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-app/ews-app/urls.py
Tools/BuildSlaveSupport/ews-app/ews/urls.py [new file with mode: 0644]
Tools/ChangeLog

index 14056e5..6b6679c 100644 (file)
@@ -35,9 +35,10 @@ Including another URLconf
     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')),
 ]
diff --git a/Tools/BuildSlaveSupport/ews-app/ews/urls.py b/Tools/BuildSlaveSupport/ews-app/ews/urls.py
new file mode 100644 (file)
index 0000000..ed4ec88
--- /dev/null
@@ -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'),
+]
index cc02be6..d89fa91 100644 (file)
@@ -1,3 +1,13 @@
+2018-11-06  Aakash Jain  <aakash_jain@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  <youenn@apple.com>
 
         Make mDNS ICE Candidate an experimental flag again