mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
18 lines
444 B
Rust
18 lines
444 B
Rust
mod register_client;
|
|
mod server_metadata;
|
|
|
|
use axum::{
|
|
Json, Router,
|
|
routing::method_routing::{get, post},
|
|
};
|
|
use serde_json::json;
|
|
pub(crate) use server_metadata::*;
|
|
|
|
pub(crate) const BASE_PATH: &str = "/_continuwuity/oauth2/";
|
|
|
|
pub(crate) fn router() -> Router<crate::State> {
|
|
Router::new()
|
|
.route("/client/register", post(register_client::register_client_route))
|
|
.route("/client/keys.json", get(async || Json(json!({"keys": []}))))
|
|
}
|