Refactor web-related modules in subpackage

This commit is contained in:
sfigato 2022-02-03 12:59:52 +01:00
parent 593255e853
commit 9fdef6f2e5
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
6 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ setup(
author_email="unit@paranoici.org", author_email="unit@paranoici.org",
package_dir={"": "src"}, package_dir={"": "src"},
packages=find_packages("src"), packages=find_packages("src"),
entry_points={"console_scripts": ["phid=phi.app:cli"]}, entry_points={"console_scripts": ["phid=phi.web.app:cli"]},
setup_requires=["pytest-runner"], setup_requires=["pytest-runner"],
install_requires=[ install_requires=[
"aiohttp==3.8.1", "aiohttp==3.8.1",

View File

@ -3,7 +3,7 @@ from aiohttp import web
from phi.logging import get_logger from phi.logging import get_logger
from phi.api.routes import api_routes from phi.api.routes import api_routes
from phi.auth_middleware import authenticated from phi.web.auth_middleware import authenticated
log = get_logger(__name__) log = get_logger(__name__)

View File

@ -9,8 +9,8 @@ import yaml
from phi.config import get_config, merge_config, extract_secret from phi.config import get_config, merge_config, extract_secret
from phi.logging import setup_logging, get_logger from phi.logging import setup_logging, get_logger
from phi.api.app import api_app from phi.api.app import api_app
from phi.client_store import ClientStore from phi.web.client_store import ClientStore
from phi.login import login from phi.web.login import login
log = get_logger(__name__) log = get_logger(__name__)

View File

@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
from aiohttp.web import middleware, HTTPFound from aiohttp.web import middleware, HTTPFound
from phi import app from phi.web import app
from phi.async_ldap.model import Hackers, Robots, Roles from phi.async_ldap.model import Hackers, Robots, Roles