14 lines
346 B
Python
14 lines
346 B
Python
from flask import Blueprint, request
|
|
from webargs.flaskparser import parser
|
|
from marshmallow import Schema, fields
|
|
from ..schemas import model
|
|
from .. import impl
|
|
|
|
bp = Blueprint('berths', __name__)
|
|
|
|
|
|
@bp.route('/berths', methods=['get'])
|
|
def GetBerths():
|
|
token = request.headers.get('Authentication')
|
|
return impl.berths.GetBerths(token)
|