mirror of
https://github.com/wangdage12/Snap.Server.git
synced 2026-02-17 08:52:10 +08:00
13 lines
337 B
Python
13 lines
337 B
Python
from flask import Blueprint, jsonify
|
|
from services.announcement_service import get_announcements
|
|
|
|
announcement_bp = Blueprint("announcement", __name__)
|
|
|
|
@announcement_bp.route("/List", methods=["POST"])
|
|
def list_announcements():
|
|
return jsonify({
|
|
"code": 0,
|
|
"message": "OK",
|
|
"data": get_announcements()
|
|
})
|