fix the locales path and add the static/wasm directory

This commit is contained in:
2021-08-12 15:48:02 +02:00
committed by dietrich
parent a3b5ef87f9
commit 0c60954776
6 changed files with 8 additions and 500 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ include!(concat!(env!("OUT_DIR"), "/generated.rs"));
static_loader! {
static LOCALES = {
locales: "./locales",
locales: "../locales",
fallback_language: "en",
};
}
-2
View File
@@ -1,5 +1,3 @@
extern crate sqlx;
pub mod models;
pub mod queries;
+1 -1
View File
@@ -86,7 +86,7 @@ pub async fn list_all_allowed(
server_config: &ServerConfig,
parameters: LinkRequestForm,
) -> Result<ListWithOwner<FullLink>, ServerError> {
use crate::sqlx::Row;
use sqlx::Row;
match authenticate(id, server_config).await? {
RoleGuard::Admin { user } | RoleGuard::Regular { user } => {
let mut querystring = "select