App: / leads to the back office; lannadesk.com is the website now
lannadesk.com is Lanna Desk's own static website (B4L/lannadesk-web, cnx-network-clan PR #163, deployed), and this app is app.lannadesk.com. The landing page the app served at `/` goes (templates/landing.html, static/landing.css): `/` now redirects to the back office, /desk. The logo files in static/brand/ stay, the website copies them. The public URL in README, PLAN, config.rs, the agreement PDF's comment and the release notes is app.lannadesk.com. Checks: fmt, clippy, 109 unit and 57 integration tests (`/` leads to /desk, signed in or not).
This commit is contained in:
1 parent
eafe918bcc
commit
39980694f6
11 files changed
+29
-397
No files matched your search
+2
-4
@@ -266,10 +266,8 @@ async fn open_paths_headers_and_not_found(pool: PgPool) {
|
||||
let r = app.get("/desk").await;
|
||||
assert_eq!(r.status, StatusCode::OK);
|
||||
assert!(r.text().contains("No people yet"));
|
||||
// `/` is the public page, the same signed in or not
|
||||
let r = app.get("/").await;
|
||||
assert_eq!(r.status, StatusCode::OK);
|
||||
assert!(r.text().contains("Visas, work permits and contracts"));
|
||||
// `/` leads to the back office
|
||||
assert_eq!(app.get("/").await.location(), "/desk");
|
||||
|
||||
let r = app.get("/people/999999").await;
|
||||
assert_eq!(r.status, StatusCode::NOT_FOUND);
|
||||
|
||||
Reference in new issue
Block a user