mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 13:37:21 +00:00
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
|