Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
litjs 库使使用 LTI 协议创建工具变得容易。是否可以使用 ltijs 在一个节点实例上创建多个工具提供程序?所有示例都使它看起来像每台服务器只有一个工具。
是的,最简单的方法是拥有多个子域,每个工具一个。像这样的东西:
import * as subdomain from 'express-subdomain'; const lti = require('ltijs').Provider // set up lti but don't call lti.deploy() app.use(subdomain('lti1.myapp.com'), lti.app);