add trailing slash to text_labels post path

This commit is contained in:
Andreas Köpf
2023-02-08 09:33:31 +00:00
parent 8cbe197d1b
commit 35a2c58565
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ export class OasstApiClient {
* Send a report about a message
*/
async send_report(message_id: string, user: BackendUserCore, text: string) {
return this.post("/api/v1/text_labels", {
return this.post("/api/v1/text_labels/", {
type: "text_labels",
message_id,
labels: [], // Not yet implemented
+1 -1
View File
@@ -9,7 +9,7 @@ const handler = withoutRole("banned", async (req, res, token) => {
// Parse out the local message_id, and the interaction contents.
const { message_id, label_map } = req.body;
const interactionRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/text_labels`, {
const interactionRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/text_labels/`, {
method: "POST",
headers: {
"X-API-Key": process.env.FASTAPI_KEY,