Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mike-engel/gotham-router-composition

A small example demonstrating one way to compose a router in gotham
https://github.com/mike-engel/gotham-router-composition

example gotham router routing rust webserver

Last synced: 7 days ago
JSON representation

A small example demonstrating one way to compose a router in gotham

Awesome Lists containing this project

README

        

# gotham-router-composition

> A small example demonstrating one way to compose a router in gotham

Welcome! To read more, read my initial blog post outlining the idea on my [website](https://mike-engel.com/writing/router-composition-in-gotham). If you have ideas on how to make this better or find a bug let me know in the issues!

# Installation and running

This project is meant to be run on the latest stable Rust. I recommend unstalling Rust via [rustup](https://rustup.rs). Because of the small scope of this project, getting up and running _should_ only be a single command.

```sh
cargo run
```

If that was successful, you can now make a request to `http://localhost:7878/api/ping` and `http://localhost:7878/api/users`!

# [code of conduct](CODE_OF_CONDUCT.md)

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

# [license](LICENSE.md)