Router, Add wellknow, fix compile errors

This commit is contained in:
Julia Lange 2025-07-02 12:32:24 -07:00
parent ee99f119f0
commit 031faf7db1
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
8 changed files with 71 additions and 58 deletions

View file

@ -174,7 +174,7 @@ impl XrpcEndpoint {
impl Endpoint for XrpcEndpoint {
fn add_to_router(self, router: axumRouter) -> axumRouter {
let path = match self.path {
Path::Nsid(nsid) => &("/xrpc/".to_owned() + nsid.as_str()),
Path::Nsid(nsid) => &("/xrpc/".to_owned() + &nsid.to_string()),
Path::NotImplemented => "/xrpc/{*nsid}",
};