-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discourse API 整理 #1
Comments
当前已经明确的文档: 另外前端调用 CORS 请求似乎需要在论坛服务器上开启, 我这两天看下 |
我先加了粗粒度的 CORS 请求的支持, 现在应该能支持从其他网页请求数据: add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "GET, PUT, POST, DELETE, OPTIONS";
add_header Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With"; |
前端是否实现成 API 客户端? |
最初的想法是这样的. 按照思路后面还应该找登录的 API, 不过还没弄明白怎么搞... |
还没开始写呢? |
这个 apis 就是渣渣。 |
@luqin 如果写 sdk 包的话,再配 redux 中间件,想不到有什么好办法来区分每个不同的请求。 |
不考虑一下引入RxJS吗?Redux写法局限性还是挺大的 |
@pinyin 你推个 PR 呗。合适就合进去。反正现在都是实验田。 |
sdk指的是api独立模块? |
api要考虑react-native复用 |
@geminiyellow 这是node端的,可以用 |
@luqin 我知道可以用,只是觉得很麻烦而已。并且粗看起来似乎不完整。 |
No description provided.
The text was updated successfully, but these errors were encountered: