Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.64 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.64 KB

Example Usage

☝️ Table of Contents

Example sensitive middleware

func main() {
  app := fiber.New()

  app.Use(sensitive.New(sensitive.Config{
    Keys: []string{
      "citizen_id",
    },
  }))
  
  // ... Handlers ...
}

⚙ Get Started

Step 0: Clone & Change Directory

git clone https://github.com/owlsome-official/sensitive.git && cd sensitive/example

Step 1: Initialize

  go mod tidy

Step 2: Go run main.go (App will listening on port 5000)

  go run main.go

Step 3: Make GET request on another terminal

# for original response
curl --request GET --url http://localhost:5000/original

# or

# for /blinded response
curl --request GET --url http://localhost:5000/blinded

Example output

docs/example-output.png

Tips: "Quality of Life" with