forked from mirrors/thatmattlove-hyperglass
remove trailing slash requirement for /api/query
This commit is contained in:
parent
2e1582a674
commit
8c8e4f8109
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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*` },
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue