19 lines
434 B
Python
19 lines
434 B
Python
from flask import request
|
|
from sqlalchemy.exc import NoResultFound
|
|
|
|
from .blueprint import api_library
|
|
|
|
from ....controller import LibraryController
|
|
from ....schema.library.library import Library
|
|
|
|
import logging
|
|
logger = logging.getLogger(__name__)
|
|
|
|
@api_library.route("/<_id>", methods=["DELETE"])
|
|
def delete_library(_id):
|
|
|
|
controller = LibraryController(_id)
|
|
|
|
controller.delete()
|
|
|
|
return { "status": "ok" }, 201 |