idle
This commit is contained in:
@@ -16,8 +16,6 @@ import 'pages/public_file_viewer.dart';
|
|||||||
import 'theme/app_theme.dart';
|
import 'theme/app_theme.dart';
|
||||||
import 'injection.dart';
|
import 'injection.dart';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart' show kIsWeb;
|
|
||||||
import 'package:flutter_web_plugins/url_strategy.dart';
|
|
||||||
|
|
||||||
final GoRouter _router = GoRouter(
|
final GoRouter _router = GoRouter(
|
||||||
routes: [
|
routes: [
|
||||||
@@ -55,9 +53,6 @@ final GoRouter _router = GoRouter(
|
|||||||
);
|
);
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
if (kIsWeb) {
|
|
||||||
setUrlStrategy(PathUrlStrategy());
|
|
||||||
}
|
|
||||||
runApp(const MainApp());
|
runApp(const MainApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2795,7 +2795,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas
|
|||||||
scheme = "http"
|
scheme = "http"
|
||||||
}
|
}
|
||||||
host := "www.b0esche.cloud"
|
host := "www.b0esche.cloud"
|
||||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||||
@@ -2860,7 +2860,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data
|
|||||||
scheme = "http"
|
scheme = "http"
|
||||||
}
|
}
|
||||||
host := "www.b0esche.cloud"
|
host := "www.b0esche.cloud"
|
||||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||||
@@ -3303,7 +3303,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat
|
|||||||
scheme = "http"
|
scheme = "http"
|
||||||
}
|
}
|
||||||
host := "www.b0esche.cloud"
|
host := "www.b0esche.cloud"
|
||||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||||
@@ -3365,7 +3365,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *
|
|||||||
scheme = "http"
|
scheme = "http"
|
||||||
}
|
}
|
||||||
host := "www.b0esche.cloud"
|
host := "www.b0esche.cloud"
|
||||||
fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token)
|
fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token)
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||||
|
|||||||
Reference in New Issue
Block a user