Skip to content

Instantly share code, notes, and snippets.

View SammyOut's full-sized avatar
🤔
Think Think Think

Sangmin In SammyOut

🤔
Think Think Think
View GitHub Profile
{"source_id":"447781907342610126","version":"1","workflow":{"name":"써브웨이 메뉴 봇","blueprint":{"version":"1","trigger":{"type":"channel_action","id":"6f84c580-8753-4f84-9ce8-68b8649d3904","config":{"name":"subway menu","channels":["${CHANNEL_ID}"],"callback_id":"9827f5f6-9031-4fa8-a033-03bc1209ba8b","description":"subway menu"}},"steps":[{"type":"dialog","id":"508ddaca-1e30-4e1b-bca2-744527b1e185","config":{"dialog_title":"써브웨이 메뉴 봇","dialog_elements":[{"name":"48fe2973-8922-44d0-a595-17c65489f791","type":"text","label":"샌드위치 종류를 골라주세요","subtype":"","optional":false,"placeholder":""},{"name":"36be4b25-f258-4c6f-8b9c-f90d9840b1a4","type":"select","label":"세트인가요?","value":"X","options":[{"label":"O","value":"O"},{"label":"X","value":"X"}],"optional":false,"data_source":"static"},{"name":"23f0027d-6c0e-408f-80d0-9508af1eea4d","type":"select","label":"사이즈를 골라주세요","value":"15cm","options":[{"label":"15cm","value":"15cm"},{"label":"30cm","value":"30cm"}],"optional":false,"data_source":"static"},{"name":"00528de6-8e6d-
@SammyOut
SammyOut / main.py
Created June 4, 2019 01:13
dsm camp server
from flask import Flask
from views import MemoListView, MemoView
app = Flask(__name__)
app.add_url_rule('/memo', view_func=MemoListView.as_view('memo_list'))
app.add_url_rule('/memo/<int:pk>', view_func=MemoView.as_view('memo'))