Skip to content
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

useCDN option for monitor middleware #263

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions api/middleware/monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Monitor middleware for [Fiber](https://github.com/gofiber/fiber) that reports server metrics, inspired by [express-status-monitor](https://github.com/RafalWilinski/express-status-monitor)

:warning: **Warning:** Monitor is still in beta, API might change in the future!

![](https://i.imgur.com/4NfRCDm.gif)

## Table of Contents
Expand Down Expand Up @@ -78,6 +76,12 @@ type Config struct {
// Optional. Default: false
APIOnly bool

// UseCDN is an option to get Chart.js from jsdelivr cdn.
// If you dont want to use cdn, Chart.js will be served from another route.
//
// Optional. Default: false
UseCDN bool

// Next defines a function to skip this middleware when returned true.
//
// Optional. Default: nil
Expand Down