This commit is contained in:
parent
a53921b429
commit
ea8721659c
5 changed files with 27 additions and 4 deletions
8
app/api/__init__.py
Normal file
8
app/api/__init__.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"""Module containing all Flask-related code."""
|
||||
from quart import Blueprint
|
||||
from .search import blueprint as search_blueprint
|
||||
|
||||
|
||||
# Main blueprint exposing entire API
|
||||
blueprint = Blueprint("api", __name__, url_prefix="/api")
|
||||
blueprint.register_blueprint(search_blueprint)
|
||||
11
app/api/search.py
Normal file
11
app/api/search.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Handles the search endpoint."""
|
||||
from quart import Blueprint
|
||||
|
||||
|
||||
blueprint = Blueprint("search", __name__, url_prefix="/search")
|
||||
|
||||
|
||||
@blueprint.route("/", methods=["GET"])
|
||||
async def search_spotify():
|
||||
"""Search the Spotify API."""
|
||||
return "yeet"
|
||||
Reference in a new issue