mirror of
https://github.com/hackspace-marburg/flaggenschnapp.git
synced 2025-12-24 17:31:02 +01:00
35 lines
587 B
Python
35 lines
587 B
Python
from starlette.authentication import requires
|
|
from starlette.requests import Request
|
|
from starlette.routing import Route
|
|
|
|
import config
|
|
import routes
|
|
|
|
RIDDLE_3_MSG = """
|
|
|
|
"""
|
|
|
|
|
|
@requires('authenticated')
|
|
async def info(request: Request):
|
|
raise NotImplementedError()
|
|
|
|
|
|
@requires('authenticated')
|
|
async def solution(request: Request):
|
|
raise NotImplementedError()
|
|
|
|
|
|
ROUTES = [
|
|
Route(
|
|
path=f'{routes.ROUTE3}',
|
|
endpoint=info,
|
|
methods=['GET'],
|
|
),
|
|
Route(
|
|
path=f'{routes.ROUTE3}',
|
|
endpoint=solution,
|
|
methods=['POST'],
|
|
),
|
|
]
|