From e9686b6ab684785d5f9acbc98942beae94817562 Mon Sep 17 00:00:00 2001 From: MetroWind Date: Sun, 21 Sep 2025 21:34:34 -0700 Subject: Implement dir handler. Unit test WIP. --- src/app.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/app.hpp') diff --git a/src/app.hpp b/src/app.hpp index 09c7143..02a1206 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -27,9 +27,10 @@ public: std::string urlFor(const std::string& name, const std::string& arg="") const; - void handleIndex(Response& res) const; void handleLogin(Response& res) const; void handleOpenIDRedirect(const Request& req, Response& res) const; + void handleIndex(Response& res) const; + void handleDir(const Request& req, Response& res); private: void setup() override; @@ -63,10 +64,10 @@ private: // this case if this function does return a value, it would never // be an invalid session. // - // If “allow_error_and_invalid” is true, failure to query and - // invalid session are considered ok, and no status and body would - // be set in “res”. In this case this function just returns an - // invalid session. + // If “allow_error_and_invalid” is true, this function will never + // return nullopt. Failure to query and invalid session are + // considered ok, and no status and body would be set in “res”. In + // this case this function just returns an invalid session. std::optional prepareSession( const Request& req, Response& res, bool allow_error_and_invalid=false) const; -- cgit v1.2.3-70-g09d2