Reorganizar arquivos

This commit is contained in:
Augusto Gunsch 2021-10-19 01:06:08 -03:00
parent 2ef9d302b0
commit b883802eac
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
7 changed files with 6 additions and 5 deletions

View File

@ -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"])

0
api/util/__init__.py Normal file
View File

View File

@ -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)

View File

@ -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

View File

@ -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