app: unignore paths.d.ts to allow to run app without needing the server first

This commit is contained in:
k
2024-08-08 09:48:36 +02:00
parent 1273da6e71
commit 597a750fff
21 changed files with 255 additions and 242 deletions

View File

@@ -57,7 +57,7 @@ impl Routes {
routes.date.insert(
map_key,
Route {
url_path: format!("/date-to-{url_path}"),
url_path: format!("date-to-{url_path}"),
file_path,
values_type,
serialization,
@@ -67,7 +67,7 @@ impl Routes {
routes.height.insert(
map_key,
Route {
url_path: format!("/height-to-{url_path}"),
url_path: format!("height-to-{url_path}"),
file_path,
values_type,
serialization,
@@ -77,7 +77,7 @@ impl Routes {
routes.last.insert(
map_key,
Route {
url_path: format!("/{url_path}"),
url_path,
file_path,
values_type,
serialization,
@@ -99,7 +99,7 @@ impl Routes {
.map(|route| format!("\"{}\"", route.url_path))
.join(" | ");
format!("type {}Path = {};\n", name, paths)
format!("// This file is auto generated by the server\n// Manual changes are forbidden\n\ntype {}Path = {};\n", name, paths)
};
let date_type = map_to_type("Date", &self.date);