Skip to content

Instantly share code, notes, and snippets.

@pxjohnny

pxjohnny/lib.rs Secret

Created December 30, 2021 15:51
#[derive(Debug, Clone, Copy, PartialEq, Routable)]
pub enum Route {
#[at("/")]
Login,
#[at("/chat")]
Chat,
#[not_found]
#[at("/404")]
NotFound,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment