mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-28 08:39:59 -07:00
app: unignore paths.d.ts to allow to run app without needing the server first
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user