Skip to content

Commit

Permalink
feat: Channel Talk Webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
invalidid56 committed Nov 10, 2023
1 parent a22d5ca commit ad52663
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ jobs:
username: ubuntu
key: ${{ secrets.KEY }}
script: |
docker stop $(docker ps -a -q) # 현재 실행중인 컨테이너를 모두 종료한다.
docker pull invalidid56/komin
docker run -d -p 80:8000 invalidid56/komin
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fastapi
from route import dashboard_route
from route import dashboard_route, analyze_route
from fastapi.middleware.cors import CORSMiddleware


Expand All @@ -12,3 +12,4 @@
)

app.include_router(dashboard_route.router, prefix='/dashboard')
app.include_router(analyze_route.router, prefix='/analyze')
17 changes: 17 additions & 0 deletions route/chatbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from fastapi import APIRouter, Depends
from data.database import get_db
from data.models import Entity, News
from starlette import status
from sqlalchemy.orm import Session
from entity.dashboard_entity import Dashboard, EntityCreate, News


router = APIRouter(prefix='/chatbot')


@router.post("/{token}", summary='')
def post_user_chat(token: str, body: dict):

return {
"result": body
}

0 comments on commit ad52663

Please sign in to comment.