[twitter] Remove twitter from webapi imports

This commit is contained in:
missytake 2023-03-22 12:48:40 +01:00
parent 672b9dbac0
commit dff30e1ede

View file

@ -16,8 +16,6 @@ from kibicara.platforms.email.webapi import router as email_router
from kibicara.platforms.telegram.webapi import router as telegram_router from kibicara.platforms.telegram.webapi import router as telegram_router
from kibicara.platforms.test.webapi import router as test_router from kibicara.platforms.test.webapi import router as test_router
from kibicara.platforms.mastodon.webapi import router as mastodon_router from kibicara.platforms.mastodon.webapi import router as mastodon_router
from kibicara.platforms.twitter.webapi import router as twitter_router
from kibicara.platforms.twitter.webapi import twitter_callback_router
from kibicara.webapi.admin import router as admin_router from kibicara.webapi.admin import router as admin_router
from kibicara.webapi.hoods import router as hoods_router from kibicara.webapi.hoods import router as hoods_router
from kibicara.webapi.hoods.badwords import router as badwords_router from kibicara.webapi.hoods.badwords import router as badwords_router
@ -35,12 +33,8 @@ hoods_router.include_router(test_router, prefix="/{hood_id}/test", tags=["test"]
hoods_router.include_router( hoods_router.include_router(
telegram_router, prefix="/{hood_id}/telegram", tags=["telegram"] telegram_router, prefix="/{hood_id}/telegram", tags=["telegram"]
) )
hoods_router.include_router(
twitter_router, prefix="/{hood_id}/twitter", tags=["twitter"]
)
hoods_router.include_router( hoods_router.include_router(
mastodon_router, prefix="/{hood_id}/mastodon", tags=["mastodon"] mastodon_router, prefix="/{hood_id}/mastodon", tags=["mastodon"]
) )
router.include_router(twitter_callback_router, prefix="/twitter", tags=["twitter"])
hoods_router.include_router(email_router, prefix="/{hood_id}/email", tags=["email"]) hoods_router.include_router(email_router, prefix="/{hood_id}/email", tags=["email"])
router.include_router(hoods_router, prefix="/hoods") router.include_router(hoods_router, prefix="/hoods")