Deno Example
June 23, 2022 ยท View on GitHub
- Install deno
- Checkout this repo
cdinto the repo and runspago installandspace build- Run
deno eval 'import { main } from "./output/Main/index.js"; main();'
- Open a new terminal and run
curl -H "content-type: application/json" --data '{"x": 1}' localhost:3001/v1/projects/asdf/environments/fdsa/flags/asdf
which will return
{"x":1,"environment":"fdsa","flag":"asdf","project":"asdf"}