【问题标题】:What is the equivalent of .use() in Fastify?Fastify 中 .use() 的等价物是什么?
【发布时间】:2022-10-20 04:21:21
【问题描述】:

我正在从 express 转到 fastify。我注意到没有 .use() 函数,但似乎应该有一个等效的或某种方式来实现相同的结果。它是如何完成的?

【问题讨论】:

    标签: express routes fastify


    【解决方案1】:

    迁移时在this article找到,等效函数为fastify.register()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-08
      • 2014-06-12
      • 1970-01-01
      • 2022-11-28
      • 2021-06-19
      • 2012-07-20
      • 2023-03-30
      • 2011-04-08
      相关资源
      最近更新 更多