https://github.com/migueldcdev/endpoints-app
A simple Elixir application featuring Plug.
https://github.com/migueldcdev/endpoints-app
Last synced: about 1 year ago
JSON representation
A simple Elixir application featuring Plug.
- Host: GitHub
- URL: https://github.com/migueldcdev/endpoints-app
- Owner: migueldcdev
- Created: 2024-12-20T09:28:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T14:13:24.000Z (over 1 year ago)
- Last Synced: 2025-02-11T12:35:58.759Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elixir Application with HTTP Endpoints Using Plug
A simple Elixir application with a couple of HTTP endpoints using Plug.
This app provides the following HTTP routes:
- `GET /ping`: Returns a simple pong message.
- `GET /number/:number`: Returns a random even or odd number depending on whether the parameter `number` is even or odd.
- `GET /_`: Returns a 404 error for any undefined routes.