~vpzom/lotide

3789d8381cc2468f7a9a703bfb5424fddfecf3e5 — Colin Reeder 9 months ago 99195e3
Add more notes to inform about frontend
2 files changed, 10 insertions(+), 0 deletions(-)

M doc/INSTALL.md
M src/routes/mod.rs
M doc/INSTALL.md => doc/INSTALL.md +2 -0
@@ 54,3 54,5 @@ The following environment variables are required (*An environment variable manag
Run `migrant setup`, then `migrant apply -a` to update the database schema.

To build and run lotide, run `cargo run` in the lotide directory.

Note that lotide itself does not contain a frontend, so you probably want to also setup [hitide](https://git.sr.ht/~vpzom/hitide).

M src/routes/mod.rs => src/routes/mod.rs +8 -0
@@ 4,6 4,14 @@ mod well_known;

pub fn route_root() -> crate::RouteNode<()> {
    crate::RouteNode::new()
        .with_handler_async("GET", |_, _, _| {
            futures::future::err(crate::Error::UserError(
                crate::simple_response(
                    hyper::StatusCode::METHOD_NOT_ALLOWED,
                    "lotide is running. Note that lotide itself does not include a frontend, and you'll need to install one separately."
                )
            ))
        })
        .with_child("apub", apub::route_apub())
        .with_child("api", api::route_api())
        // temporary Lemmy compat. To be removed.