Reorganizar arquivos
This commit is contained in:
parent
2ef9d302b0
commit
b883802eac
|
@ -1,5 +1,6 @@
|
|||
from api.app import app
|
||||
from api.views import trainer, pokemon_owned, authentication, errors
|
||||
from api.views import trainer, pokemon_owned, errors
|
||||
from api.util import authentication
|
||||
import asyncio
|
||||
|
||||
@app.route("/trainer/<int:trainerId>", methods=["GET"])
|
||||
|
|
|
@ -2,7 +2,7 @@ from functools import wraps
|
|||
from flask import request
|
||||
from api.app import app
|
||||
from .fetch import get_trainer_by_nick_fail, NotFound
|
||||
from .errors import AuthenticationFailure
|
||||
from api.views.errors import AuthenticationFailure
|
||||
import jwt
|
||||
|
||||
# autenticação do trainer (decorator)
|
|
@ -1,8 +1,8 @@
|
|||
from api.models.pokemon_owned import pokemon_owned_schema, pokemon_owned_schemas, PokemonOwned
|
||||
from api.app import db
|
||||
from .parse_args import parse_limit, parse_offset, ParsingException, parse_json_obj
|
||||
from api.util.fetch import *
|
||||
from api.util.parse_args import parse_limit, parse_offset, ParsingException, parse_json_obj
|
||||
from .errors import ParsingError, FetchError, ConflictingResources
|
||||
from .fetch import *
|
||||
from aiohttp import ClientSession
|
||||
import asyncio
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
|
|
|
@ -4,7 +4,7 @@ from api.app import db
|
|||
from api.app import app
|
||||
from flask import request, jsonify
|
||||
from .errors import *
|
||||
from .parse_args import parse_limit, parse_offset, ParsingException, parse_json_obj
|
||||
from api.util.parse_args import parse_limit, parse_offset, ParsingException, parse_json_obj
|
||||
from werkzeug.security import check_password_hash
|
||||
import datetime
|
||||
import jwt
|
||||
|
|
Loading…
Reference in New Issue