pub -> pub(crate)

This commit is contained in:
asonix
2021-02-09 22:17:20 -06:00
parent 50d2b5b21c
commit 2c275e441b
31 changed files with 86 additions and 104 deletions
+5 -2
View File
@@ -5,7 +5,7 @@ use crate::{
use actix_web::{web, Responder};
use actix_webfinger::Link;
pub async fn well_known(config: web::Data<Config>) -> impl Responder {
pub(crate) async fn well_known(config: web::Data<Config>) -> impl Responder {
web::Json(Links {
links: vec![Link {
rel: "http://nodeinfo.diaspora.software/ns/schema/2.0".to_owned(),
@@ -22,7 +22,10 @@ struct Links {
links: Vec<Link>,
}
pub async fn route(config: web::Data<Config>, state: web::Data<State>) -> web::Json<NodeInfo> {
pub(crate) async fn route(
config: web::Data<Config>,
state: web::Data<State>,
) -> web::Json<NodeInfo> {
web::Json(NodeInfo {
version: NodeInfoVersion,
software: Software {