ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Implement GET /directory/room/:room_alias #73

Closed jooert closed 8 years ago

jooert commented 8 years ago

This adds a module directory under api::r0 where the /directory/room/:room_alias endpoint is implemented. So far, I've only implemented the GET verb.

Closes #21.

jimmycuadra commented 8 years ago

Looks pretty good! I think RoomAlias::get_room_id should be RoomAlias::find_by_alias and should return a full RoomAlias rather than just the ID. Then the correct value for the servers field can be returned in the response, too. Thanks for doing this!

jooert commented 8 years ago

Of course! I changed it and also updated the status document.

jimmycuadra commented 8 years ago

Great work! Thank you!