|
|
|
@ -5,9 +5,9 @@ from apistar.frameworks.wsgi import WSGIApp as App
|
|
|
|
|
from apistar.handlers import docs_urls, static_urls
|
|
|
|
|
from apistar.interfaces import Router
|
|
|
|
|
|
|
|
|
|
from render import JSONRenderer
|
|
|
|
|
from commands import commands
|
|
|
|
|
from models.schema import Base, Cookie
|
|
|
|
|
from cookie_api.render import JSONRenderer
|
|
|
|
|
from cookie_api.commands import commands
|
|
|
|
|
from cookie_api.models.schema import Base, Cookie
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_cookies(session: Session):
|
|
|
|
@ -57,14 +57,13 @@ routes = [
|
|
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
'DATABASE': {
|
|
|
|
|
'URL': 'postgresql://:@localhost/apistar',
|
|
|
|
|
'URL': 'postgresql://apistar:local@localhost/apistar',
|
|
|
|
|
'METADATA': Base.metadata
|
|
|
|
|
},
|
|
|
|
|
'RENDERERS': [JSONRenderer()],
|
|
|
|
|
'JWT': {
|
|
|
|
|
'SECRET': 'thisisasecret'
|
|
|
|
|
},
|
|
|
|
|
'BCRYPT_LOG_ROUNDS': 13
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
commands = sqlalchemy_backend.commands + commands
|
|
|
|
|