example echo server
1.0.0
Server gema kecil yang ditulis di Gleam! Ini akan membalas dengan tubuh apa pun yang diposting ke /echo .
Lebih penting lagi itu juga contoh aplikasi web yang ditulis dalam bahasa pemrograman glam!
# Start the web server locally
gleam run
# Send a request to the server
curl -X POST -d ' Hello, Gleam! ' http://localhost:3000/echo