Przeglądaj źródła

Huebot django app integrate with Hue Server

Harshg999 4 lat temu
rodzic
commit
c2b9e79a2d

+ 0 - 0
desktop/core/src/desktop/lib/botserver/__init__.py


+ 3 - 0
desktop/core/src/desktop/lib/botserver/admin.py

@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.

+ 5 - 0
desktop/core/src/desktop/lib/botserver/apps.py

@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class BotserverConfig(AppConfig):
+    name = 'botserver'

+ 0 - 0
desktop/core/src/desktop/lib/botserver/migrations/__init__.py


+ 3 - 0
desktop/core/src/desktop/lib/botserver/models.py

@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.

+ 3 - 0
desktop/core/src/desktop/lib/botserver/tests.py

@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.

+ 6 - 0
desktop/core/src/desktop/lib/botserver/urls.py

@@ -0,0 +1,6 @@
+from django.conf.urls import url
+from . import views
+
+urlpatterns = [
+  url(r'^events/', views.home, name = 'home')
+]

+ 7 - 0
desktop/core/src/desktop/lib/botserver/views.py

@@ -0,0 +1,7 @@
+from django.shortcuts import render
+from django.http import HttpResponse
+
+# Create your views here.
+
+def home(request):
+  return HttpResponse("Hello World")

+ 4 - 0
desktop/core/src/desktop/urls.py

@@ -274,3 +274,7 @@ if is_oidc_configured():
   urlpatterns += [
     url(r'^oidc/', include('mozilla_django_oidc.urls')),
   ]
+
+urlpatterns += [
+    url(r'^slack/', include('desktop.lib.botserver.urls')),
+  ]