fix(utils): Add code to MVC model
This commit is contained in:
1 parent
13bb16759b
commit
5031ce6120
6 files changed
+31
-28
No files matched your search
@@ -0,0 +1,10 @@
|
||||
from utils.steamutils import STEAM_API_KEY, _serve
|
||||
from flask import Blueprint, jsonify
|
||||
|
||||
steam_bp = Blueprint("steam", __name__)
|
||||
|
||||
@steam_bp.route("/api/steam/activity")
|
||||
def steam_activity():
|
||||
if not STEAM_API_KEY:
|
||||
return jsonify(ok=False, error="STEAM_API_KEY is not set"), 503
|
||||
return _serve()
|
||||
Reference in new issue
Block a user