-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
31 lines (28 loc) · 812 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Handles checkin application"""
from typing import Any
from starlette.applications import Starlette
from starlette.routing import Route
from endpoints.enrollment_endpoint import WindowsEnrollment
routes: list[Route] = [
Route(
"/EnrollmentServer/Discovery.svc",
WindowsEnrollment().handle_discovery_service,
methods=["POST"]
),
Route(
"/AuthenticationServiceUrl",
WindowsEnrollment().handle_authentication_service,
methods=["GET"]
),
Route(
"/PolicyWebServiceUrl",
WindowsEnrollment().handle_policy_web_service,
methods=["GET"]
),
Route(
"/EnrollmentWebServiceUrl",
WindowsEnrollment().handle_enrollment_web_service,
methods=["GET"]
)
]
app: Starlette = Starlette(routes=routes)