from functions.Response import sendResponse
from flask import Blueprint, request
from functions.Bigcartel.Auth import authUrl, authToken
bigcartelBlueprint = Blueprint("bigcartel", __name__)

@bigcartelBlueprint.get("/auth")
def auth():
    return sendResponse(authUrl, request)
    
@bigcartelBlueprint.post("/token")
def token():
    return sendResponse(authToken, request)