mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
15 lines
280 B
Python
15 lines
280 B
Python
![]() |
from haystack.constants import DEFAULT_ALIAS
|
||
|
|
||
|
|
||
|
class BaseRouter(object):
|
||
|
# Reserved for future extension.
|
||
|
pass
|
||
|
|
||
|
|
||
|
class DefaultRouter(BaseRouter):
|
||
|
def for_read(self, **hints):
|
||
|
return DEFAULT_ALIAS
|
||
|
|
||
|
def for_write(self, **hints):
|
||
|
return DEFAULT_ALIAS
|