1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

remove trailing slash requirement for /api/query

This commit is contained in:
thatmattlove
2024-02-27 23:02:40 -05:00
parent 2e1582a674
commit 8c8e4f8109
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ app.add_api_route(
)
app.add_api_route(
path="/api/query/",
path="/api/query",
endpoint=query,
methods=["POST"],
summary=STATE.params.docs.query.summary,

View File

@ -3,7 +3,7 @@ const rewrites = async () => {
return [];
}
return [
{ source: '/api/query/', destination: `${process.env.HYPERGLASS_URL}api/query/` },
{ source: '/api/query', destination: `${process.env.HYPERGLASS_URL}api/query` },
{ source: '/images/:image*', destination: `${process.env.HYPERGLASS_URL}images/:image*` },
];
};