ryuk-cli 0.1.1

The `ryuk` command: scaffold a Ryuk app (axum, SeaORM, Inertia/Svelte), generate controllers, models, jobs and mails, run migrations and the dev server.
use crate::{
    AppState,
    controllers::{api_keys, auth, orgs, posts, projects, security},
};
use utoipa_axum::{router::OpenApiRouter, routes};

/// Web (browser) routes only; JSON routes live in `src/api.rs`. Handlers carry `#[utoipa::path]` so they show up at /docs.
pub fn router() -> OpenApiRouter<AppState> {
    OpenApiRouter::new()
        .routes(routes!(auth::welcome))
        .routes(routes!(auth::show_login, auth::login))
        .routes(routes!(auth::show_register, auth::register))
        .routes(routes!(auth::logout))
        .routes(routes!(auth::show_verify_email))
        .routes(routes!(auth::verify_email))
        .routes(routes!(auth::resend_verification))
        .routes(routes!(auth::show_forgot, auth::forgot))
        .routes(routes!(auth::show_reset_form))
        .routes(routes!(auth::reset))
        .routes(routes!(auth::dashboard))
        .routes(routes!(posts::index, posts::store))
        .routes(routes!(posts::create))
        .routes(routes!(posts::edit))
        .routes(routes!(posts::update, posts::destroy))
        .routes(routes!(api_keys::index, api_keys::store))
        .routes(routes!(api_keys::revoke))
        .routes(routes!(security::index))
        .routes(routes!(security::revoke_grant))
        .routes(routes!(security::revoke_device))
        .routes(routes!(security::logout_everywhere))
        .routes(routes!(security::change_password))
        .routes(routes!(security::delete_account))
        .routes(routes!(orgs::index, orgs::store))
        .routes(routes!(orgs::show, orgs::destroy))
        .routes(routes!(orgs::invite))
        .routes(routes!(orgs::revoke_invite))
        .routes(routes!(orgs::set_role, orgs::remove_member))
        .routes(routes!(projects::store))
        .routes(routes!(projects::destroy))
        .routes(routes!(orgs::show_invitation))
        .routes(routes!(orgs::accept))
        // ryuk:routes (`ryuk make:controller` adds its route above this line)
}