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.
当我在 Vapor 3.1.0 中获得 404 时,我想制作一个自定义叶子页面。我已经在网上搜索过它,即使在文档中,我也找不到。我怎么能做到?
谢谢
查看https://github.com/brokenhandsio/leaf-error-middleware,它提供了一个解决方案来做你想做的事!
基本上它替换了错误中间件并加载404.leaf或加载serverError.leaf不同的错误。
404.leaf
serverError.leaf