7 lines
230 B
Python
7 lines
230 B
Python
from flask import Blueprint
|
|
from app.songs import latest_songs
|
|
|
|
def create_blueprint():
|
|
bp = Blueprint('Songs Blueprint', __name__)
|
|
bp.route('/<user>/latest-song', methods=['GET'])(latest_songs.route)
|
|
return bp
|