File tree Expand file tree Collapse file tree 8 files changed +12
-10
lines changed Expand file tree Collapse file tree 8 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 3
3
from ellar .common .params .params import ParamFieldInfo as Param , ParamTypes
4
4
5
5
from .base import RouteOperationBase
6
- from .controller .factory import ControllerRouterFactory
7
6
from .mount import ModuleMount , ModuleRouter
8
7
from .operation_definitions import OperationDefinitions
9
8
from .route import RouteOperation
47
46
"RouteOperationBase" ,
48
47
"OperationDefinitions" ,
49
48
"WebsocketRouteOperation" ,
50
- "ControllerRouterFactory" ,
51
49
]
52
50
53
51
Original file line number Diff line number Diff line change 15
15
)
16
16
from ellar .common .models import ControllerBase
17
17
from ellar .common .routing import ModuleMount
18
- from ellar .common .routing .builder import get_controller_builder_factory
19
18
from ellar .common .templating import ModuleTemplating
20
19
from ellar .di import (
21
20
MODULE_REF_TYPES ,
27
26
from ellar .di .providers import ModuleProvider
28
27
from ellar .reflect import reflect
29
28
29
+ from ..routing import get_controller_builder_factory
30
30
from .base import ModuleBase , ModuleBaseMeta
31
31
32
32
if t .TYPE_CHECKING : # pragma: no cover
Original file line number Diff line number Diff line change 1
1
from .app import ApplicationRouter
2
+ from .builder import RouterBuilder , get_controller_builder_factory
3
+ from .factory import ControllerRouterFactory
2
4
3
5
__all__ = [
4
6
"ApplicationRouter" ,
7
+ "ControllerRouterFactory" ,
8
+ "get_controller_builder_factory" ,
9
+ "RouterBuilder" ,
5
10
]
Original file line number Diff line number Diff line change 3
3
from starlette .routing import Mount
4
4
5
5
if t .TYPE_CHECKING : # pragma: no cover
6
- from .mount import ModuleMount
6
+ from ellar . common . routing .mount import ModuleMount
7
7
8
8
_router_builder_factory : t .Dict [t .Type , t .Type ["RouterBuilder" ]] = {}
9
9
Original file line number Diff line number Diff line change 8
8
CONTROLLER_WATERMARK ,
9
9
)
10
10
from ellar .common .models import ControllerBase , ControllerType
11
+ from ellar .common .routing import ModuleMount , RouteCollection
11
12
from ellar .reflect import reflect
12
13
13
- from ..builder import RouterBuilder
14
- from ..mount import ModuleMount
15
- from ..route_collections import RouteCollection
14
+ from .builder import RouterBuilder
16
15
17
16
18
17
class ControllerRouterFactory (RouterBuilder , controller_type = type (ControllerBase )):
Original file line number Diff line number Diff line change 3
3
import socketio
4
4
from starlette .routing import Mount
5
5
6
- from ellar .common .routing . builder import RouterBuilder
6
+ from ellar .core .routing import RouterBuilder
7
7
from ellar .reflect import reflect
8
8
from ellar .socket_io .adapter import SocketIOASGIApp
9
9
from ellar .socket_io .constants import (
Original file line number Diff line number Diff line change 5
5
CONTROLLER_CLASS_KEY ,
6
6
CONTROLLER_OPERATION_HANDLER_KEY ,
7
7
)
8
- from ellar .common .routing import ControllerRouterFactory
8
+ from ellar .core .routing import ControllerRouterFactory
9
9
from ellar .di import has_binding , is_decorated_with_injectable
10
10
from ellar .reflect import reflect
11
11
Original file line number Diff line number Diff line change 2
2
3
3
from ellar .common import Controller , get , ws_route
4
4
from ellar .common .constants import CONTROLLER_CLASS_KEY
5
- from ellar .common .routing import ControllerRouterFactory
6
5
from ellar .core import AppFactory
6
+ from ellar .core .routing import ControllerRouterFactory
7
7
from ellar .reflect import reflect
8
8
9
9
You can’t perform that action at this time.
0 commit comments