https://github.com/aergonaut/pimento
https://github.com/aergonaut/pimento
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aergonaut/pimento
- Owner: aergonaut
- Created: 2016-01-30T11:14:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T11:14:19.000Z (about 9 years ago)
- Last Synced: 2025-02-09T19:29:19.244Z (3 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pimento
## Project structure
I have split the project into two sections to help isolate code.
The file `src/bin/pimento.rs` is the main entry-point to the application. This
file is compiled into a binary and which is executed to bind the port and serve
requests. This file contains the routing definitions as well as the config for
the middleware stack, etc.In `src/pimento` there are various library files that make up the main chunk of
application code.Route handlers are defined in the `handlers` module, each in their own module.
My convention is that each handler module exports a single `handle` function,
but this might change.Each of the handler functions are wired up to their routes through the router in
`src/bin/pimento.rs`