mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-13 21:38:20 +00:00
b6905c9235
Added early API listener enpionts
28 lines
739 B
Python
28 lines
739 B
Python
from flask import Blueprint, current_app, request
|
|
|
|
api_blueprint = Blueprint('api', __name__)
|
|
|
|
|
|
@api_blueprint.route('/web', methods=['GET', 'POST'])
|
|
def web():
|
|
current_app.logger.info(f"API::WEB [DATA] {request.data}")
|
|
return
|
|
|
|
|
|
@api_blueprint.route('/game', methods=['GET', 'POST'])
|
|
def game():
|
|
current_app.logger.info(f"API::GAME [DATA] {request.data}")
|
|
return
|
|
|
|
|
|
@api_blueprint.route('/game_content', methods=['GET', 'POST'])
|
|
def game_content():
|
|
current_app.logger.info(f"API::GAME CONTENT [DATA] {request.data}")
|
|
return
|
|
|
|
|
|
@api_blueprint.route('/metrics_data_service', methods=['GET', 'POST'])
|
|
def metrics_data_service():
|
|
current_app.logger.info(f"API::METRICS DATA SERVICE [DATA] {request.data}")
|
|
return
|