generated from nhcarrigan/template
fix: correct announcement API endpoint URL
This commit is contained in:
@@ -97,7 +97,7 @@ export const handleAnnouncementModal = async(
|
|||||||
const categoryValues = interaction.fields.getStringSelectValues("category");
|
const categoryValues = interaction.fields.getStringSelectValues("category");
|
||||||
const type = categoryValues[0] ?? "company";
|
const type = categoryValues[0] ?? "company";
|
||||||
|
|
||||||
const response = await fetch("https://hikari.nhcarrigan.com/announcement", {
|
const response = await fetch("https://hikari.nhcarrigan.com/api/announcement", {
|
||||||
body: JSON.stringify({ content, type }),
|
body: JSON.stringify({ content, type }),
|
||||||
headers: {
|
headers: {
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention -- HTTP header capitalisation convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- HTTP header capitalisation convention
|
||||||
|
|||||||
Reference in New Issue
Block a user