mirror of
https://github.com/FunnyWolf/agentic-soc-platform.git
synced 2026-08-22 13:12:56 +02:00
22 lines
960 B
Python
22 lines
960 B
Python
from django.urls import re_path, include
|
|
from rest_framework import routers
|
|
|
|
from Automation.views import PlaybookView
|
|
# from Core.views import BaseAuthView, CurrentUserView
|
|
from Forwarder.views import WebhookSplunkView, WebhookKibanaView, WebhookNocolyMailView
|
|
|
|
router = routers.DefaultRouter(trailing_slash=False)
|
|
# router.register(r'api/login/account', BaseAuthView, basename="BaseAuth")
|
|
# router.register(r'api/currentUser', CurrentUserView, basename="CurrentUser")
|
|
|
|
router.register(r'api/v1/webhook/splunk', WebhookSplunkView, basename="WebhookSplunkView")
|
|
router.register(r'api/v1/webhook/kibana', WebhookKibanaView, basename="WebhookKibanaView")
|
|
router.register(r'api/v1/webhook/nocolymail', WebhookNocolyMailView, basename="WebhookNocolyMailView")
|
|
router.register(r'api/v1/automation/playbook', PlaybookView, basename="PlaybookView")
|
|
urlpatterns = [
|
|
re_path(r'^', include(router.urls)),
|
|
]
|
|
from Lib.montior import MainMonitor
|
|
|
|
MainMonitor().start()
|