Slash Command not showing

Hey! so, a previous dev decided to be a dick & let a community hanging. I've never used Sapphire before but making my way along, I just created a new slash command & I'm yet to see them. Why is this? I know for discord.js I would have to provide them all at once, what do I do for sapphire?
No description
226 Replies
static
staticOPβ€’6mo ago
@Helpers hate to ping, but i've been waiting for an answer; currently trying to get this implemented asap!!
vladdy
vladdyβ€’6mo ago
what do the logs say? also you dont need id hints
KaydaFox
KaydaFoxβ€’6mo ago
most of the time you also need to restart your discord client for them to show if they were deployed correctly
static
staticOPβ€’6mo ago
doesn't say anything, they don't show the command in general oh okay i'll try that sorry I got to both of you so late! appreciate you both
KaydaFox
KaydaFoxβ€’6mo ago
do you get a message saying that it refreshed (x) application commands at all?
static
staticOPβ€’6mo ago
yeah, I ended up refreshing them and they showed πŸ˜… i feel like an idiot
KaydaFox
KaydaFoxβ€’6mo ago
dw it happens ^^
static
staticOPβ€’6mo ago
if you dont mind, what makes sapphire different from discord.js? so far just looking at it, seems pretty nice but i've never heard of it before
KaydaFox
KaydaFoxβ€’6mo ago
sapphhire is just a framework built around / on-top of discord.js
static
staticOPβ€’6mo ago
ah okay are the /routes for external routes sent by an api or anything?
KaydaFox
KaydaFoxβ€’6mo ago
in general, it makes stuff like commands and listeners much easier to implement and sapphire will handle the loading of it all for you, whereas discord.js requires you to manually do that. Most methods and structures are all still from discord.js though. E.g. User or Message the routes folder is used when youre using @sapphire/plugin-api, so you can setup your own API routes for other things to use but have sapphhire handle them too so you could have a route "/stats" that then returns something like how many servers the bot is in and how many users its handling and then have that displayed dynamically on a website
static
staticOPβ€’6mo ago
oh wow, that's pretty sick. I'm glad I stumbled upon this framework, i'm for sure gonna use it more often later in the future then i could count many times where the plugin-api would have came in clutch alot πŸ˜… im guessing the sapphire library is primarily based on classes?
KaydaFox
KaydaFoxβ€’6mo ago
yes, it is
static
staticOPβ€’6mo ago
ah nice thank you thank you
KaydaFox
KaydaFoxβ€’6mo ago
youre welcome :KaydaHeart:
static
staticOPβ€’6mo ago
@KaydaFox Hey! hopefully you don't mind me pinging you, only doing so because you have conext on the whole situation I'm trying to use routes and I call it from a server, I get an error Like: http://159.89.84.165:3001/v1/cache I don't know if I'm doing something wrong but
api: {
listenOptions: {
port: 3001,
// host: "0.0.0.0",
},
prefix: "/",
origin: "*",
},
api: {
listenOptions: {
port: 3001,
// host: "0.0.0.0",
},
prefix: "/",
origin: "*",
},
KaydaFox
KaydaFoxβ€’6mo ago
Change your prefix to v1
static
staticOPβ€’6mo ago
Will do
KaydaFox
KaydaFoxβ€’6mo ago
I think, haven't used the API plugin for a long time and I'm not home rn to check code I have there
KaydaFox
KaydaFoxβ€’6mo ago
The docs for it though can be found here; https://sapphirejs.dev/docs/Guide/plugins/API/getting-started
Sapphire Framework
Getting Started | Sapphire
Introduction
static
staticOPβ€’6mo ago
Alright, yeah I tried checking the docs but they weren't too helpful. Just more bland Do I need to have the host property on the actual server?
KaydaFox
KaydaFoxβ€’6mo ago
Usually you can just set the host to 0.0.0.0 and you'll be able to use it on the current machine
Favna
Favnaβ€’6mo ago
If those pages are bland then please make a PR to make them better because the API docs are one of the most detailed guide pages of all pages 10 pages of loads of info...
static
staticOPβ€’6mo ago
Ah okay No it's fine, I just have a hard time understanding the docs compared to this dudes code if that makes sense
static
staticOPβ€’6mo ago
For example, he has something like this
No description
Favna
Favnaβ€’6mo ago
if my "this dude" you mean Kayda, she's a girl, not a dude πŸ‘€
static
staticOPβ€’6mo ago
no I'm working on someone elses code bc they decided to quit, that's what I meant πŸ˜…
Favna
Favnaβ€’6mo ago
ah
static
staticOPβ€’6mo ago
Yeah, no avail. I'm not sure whether it might be the actual server itself or what
No description
Favna
Favnaβ€’6mo ago
I didn't really read the whole convo, but is this a remote server?
drainpixie
drainpixieβ€’6mo ago
port might just not be open to the publik
Favna
Favnaβ€’6mo ago
that's what I was gonna say on top of which if it's an oracle vm then you need to open the thingimajig routing thing
static
staticOPβ€’6mo ago
I have a vps on digital ocean which host my bot, I've been trying to get a domain running so the sapphire routing system could work but I couldn't really get that. I then figured it'd be best try the ip itself and nothing. I have this inbound rules, so it should be receiving http/https traffic
No description
static
staticOPβ€’6mo ago
I allowed the 3001 port through ufw
Favna
Favnaβ€’6mo ago
also try adding 3001 to that inbound rules list
KaydaFox
KaydaFoxβ€’6mo ago
you gotta open port 3001 there too
drainpixie
drainpixieβ€’6mo ago
check if you can ping that ip in general
Favna
Favnaβ€’6mo ago
ufw is system level, digital coean is ingress level (I remembered the name of thingimajig now)
static
staticOPβ€’6mo ago
Alright, I assume adding this should allow inbound requests from the 3001 port:
No description
static
staticOPβ€’6mo ago
ah didnt know that I did
static
staticOPβ€’6mo ago
No description
drainpixie
drainpixieβ€’6mo ago
does this work or it still nay if not send output of sudo ufw status verbose
static
staticOPβ€’6mo ago
nope
static
staticOPβ€’6mo ago
No description
drainpixie
drainpixieβ€’6mo ago
ufw isn't active so yeah I don't think it's doing anything do netstat -lntu and check if you actually have 3001 open
static
staticOPβ€’6mo ago
Alright, I will do that
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
I guess I don't?
drainpixie
drainpixieβ€’6mo ago
no actually turn on ufw
static
staticOPβ€’6mo ago
Alright
drainpixie
drainpixieβ€’6mo ago
sudo ufw enable this will drop your ssh connection btw so make sure to add OpenSSH rules to UFW before you do should just be sudo ufw allow OpenSSH
static
staticOPβ€’6mo ago
Alright, just did those
drainpixie
drainpixieβ€’6mo ago
it's still closed
No description
static
staticOPβ€’6mo ago
Gonna try restarting the server
drainpixie
drainpixieβ€’6mo ago
sudo ufw show added does it show the 3001?
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Yeah it does
drainpixie
drainpixieβ€’6mo ago
huh
static
staticOPβ€’6mo ago
probably made a mistake choosing digital ocean πŸ˜…
drainpixie
drainpixieβ€’6mo ago
seems to be working now
drainpixie
drainpixieβ€’6mo ago
No description
drainpixie
drainpixieβ€’6mo ago
oh nvm as soon as i said that it closed
static
staticOPβ€’6mo ago
I restarted it Does it usaully take time for it to update the ufw settings?
drainpixie
drainpixieβ€’6mo ago
maybe I'm reaching but try sudo ufw allow 3001/tcp Not really
static
staticOPβ€’6mo ago
alright, I added the ufw & the server should be up now πŸ˜…
drainpixie
drainpixieβ€’6mo ago
still closed
KaydaFox
KaydaFoxβ€’6mo ago
normally doing stuff of digitalocean with ufw is instant, that's odd
drainpixie
drainpixieβ€’6mo ago
what happens if you run sudo netstat -tuln | grep 3001
KaydaFox
KaydaFoxβ€’6mo ago
check if the bot is listening on the port for def
drainpixie
drainpixieβ€’6mo ago
the port seems completely closed considering nmap can't scan it
static
staticOPβ€’6mo ago
Nothing
drainpixie
drainpixieβ€’6mo ago
and sudo ufw status verbose again?
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Is it odd that pinging the server returns this?
No description
drainpixie
drainpixieβ€’6mo ago
very before it worked fine I suppose it's because now ufw is actually on so it's denying ping requests tbh I'd say fuck it and disable ufw and rawdog iptables or try again with DO's interface rather than ufw oh wait it is working I think, it's just that ufw is blocking the ping
static
staticOPβ€’6mo ago
oh, why do you say that?
KaydaFox
KaydaFoxβ€’6mo ago
its responding withh a 503 though i forget the http codes but isnt that service unavailable?
static
staticOPβ€’6mo ago
yeah it is
drainpixie
drainpixieβ€’6mo ago
because neither TCP nor ICMP pings work So ufw seems to be blocking those
static
staticOPβ€’6mo ago
Ah
drainpixie
drainpixieβ€’6mo ago
I'm using -Pn to kinda circumvent that but that's probably why it can't find 3001 if I had to guess
static
staticOPβ€’6mo ago
well, I tried it on postman & the browser yet connection refused for both
No description
static
staticOPβ€’6mo ago
Can me using docker have some sort of influence on all this?
drainpixie
drainpixieβ€’6mo ago
Huh, yes
Favna
Favnaβ€’6mo ago
can you show docker ps?
drainpixie
drainpixieβ€’6mo ago
Docker has it's own networking thing And it does not work well with ufw firewall afaIk
static
staticOPβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
yeah you're not port mapping
static
staticOPβ€’6mo ago
πŸ˜… thats fun
Favna
Favnaβ€’6mo ago
add -p 3001:3001 to your docker run or
ports:
- 3001:3001
ports:
- 3001:3001
to yaml I was gonna suggest it anyway but if you would've run curl localhost:3001 on the VPS itself it also wouldnt have worked without port mapping
KaydaFox
KaydaFoxβ€’6mo ago
ah didnt realize they were using docker
drainpixie
drainpixieβ€’6mo ago
if this doesn't work we can also try netcat ^_^
static
staticOPβ€’6mo ago
Alright, I just ran it with the -p 3001:3001 argument. Allowing the bot to boot up now
drainpixie
drainpixieβ€’6mo ago
port is open
static
staticOPβ€’6mo ago
I should've said something earlier, sorry about that πŸ˜…
drainpixie
drainpixieβ€’6mo ago
No description
drainpixie
drainpixieβ€’6mo ago
open!
static
staticOPβ€’6mo ago
I really appreciate you all for helping me out while I get this fixed
drainpixie
drainpixieβ€’6mo ago
npp
static
staticOPβ€’6mo ago
okay, i got it to return something but now it's a 404 error
static
staticOPβ€’6mo ago
No description
KaydaFox
KaydaFoxβ€’6mo ago
wait did you put the "v1" inside of the route too? if so try v1/v1 and then remove it from eithher the route or the prefix if it works may have been an oversight on my part
static
staticOPβ€’6mo ago
This is everything in the api object property:
api: {
listenOptions: {
port: 3001,
// host: "0.0.0.0",
},
prefix: "/v1",
origin: "*",
},
api: {
listenOptions: {
port: 3001,
// host: "0.0.0.0",
},
prefix: "/v1",
origin: "*",
},
I tried running /v1/test, v1/v1/test, and /test yet to no avail
KaydaFox
KaydaFoxβ€’6mo ago
hm, wonder if its just not loading routes unlikely but ive had that happen
static
staticOPβ€’6mo ago
Ive ran it on my local machine yesterday & it returned valid data, is it not loading routes still possible?
Favna
Favnaβ€’6mo ago
can you go into the docker container with docker exec -it <container_name> /bin/sh and run curl localhost:3001/v1/v1/test and the variatns of the url? I have a theory and if one of those works then I know why for sure
static
staticOPβ€’6mo ago
Alright, I'll do so
static
staticOPβ€’6mo ago
@Boomeravna Would it normally return something?
No description
Favna
Favnaβ€’6mo ago
ah add -I flag also is test a real route? you showed v1/debug before here
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Yeah
Favna
Favnaβ€’6mo ago
well can you restore the host line here? iirc we default to localhost but localhost isn't implicitly mapped to 0.0.0.0 or 127.0.0.1 for that matter in a docker container
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Alright, will do give me a minute
Favna
Favnaβ€’6mo ago
curl -I localhost:30001/test
curl -I localhost:30001/test
this will return the response headers so you can see the status code
Favna
Favnaβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Ah, my bad πŸ˜…
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Picking up on what Kayda said, could it not be loading routes?
Favna
Favnaβ€’6mo ago
you could try logging them ig. Do commands and listeners work?
static
staticOPβ€’6mo ago
yeah, bot works fine
static
staticOPβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
add a log for this.container.stores.get('routes')ig otherwise I'm a bit stumped and the fastest may be if you can share the bots code like, a github repo or zip file (with auth stuff being changed for placeholders ofc)
static
staticOPβ€’6mo ago
No description
KaydaFox
KaydaFoxβ€’6mo ago
the routes folder was definitely pushed there, right?
static
staticOPβ€’6mo ago
yea
static
staticOPβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
src not dist
static
staticOPβ€’6mo ago
OH
Favna
Favnaβ€’6mo ago
you need files in dist
static
staticOPβ€’6mo ago
let me look
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
yeah it is
Favna
Favnaβ€’6mo ago
why is routes not on the top line :thonk: ?
static
staticOPβ€’6mo ago
wdym?
Favna
Favnaβ€’6mo ago
I see commands, interaction-handlers, and others but no folder called routes
static
staticOPβ€’6mo ago
Oh, I shortened it
No description
static
staticOPβ€’6mo ago
Gonna get the src
Favna
Favnaβ€’6mo ago
well then this tbh
static
staticOPβ€’6mo ago
@Boomeravna ^
Favna
Favnaβ€’6mo ago
deleted the zip because you leaked your token through the .git folder with unstaged changes there @static
static
staticOPβ€’6mo ago
Oh πŸ˜… thanks for that
Favna
Favnaβ€’6mo ago
(the fact that env was even tracked by git is just bad) (but that's beside the point rn ig)
static
staticOPβ€’6mo ago
Yeahh ik I’m just tryna get this thing up rn
Favna
Favnaβ€’6mo ago
oh no the code has prototype pollution oh my dear lord
static
staticOPβ€’6mo ago
Blame the previous dev haha, is that bad?
Favna
Favnaβ€’6mo ago
yeah discordjs used to have it natively and then it was removed in iirc v12 or v13 and some people were big mad that their shit code quality was no longer supported and they started adding extenders like those seen here instead of accepting that they it was a code smell and they should just refactor they had to stick to it and find hacks around it instead
static
staticOPβ€’6mo ago
No wonder why his code didn’t really look like what the docs have
Favna
Favnaβ€’6mo ago
anyway this bot is quite complex and sadly not something I can just run myself I think. All the Rust stuff ...
static
staticOPβ€’6mo ago
:jawdroppinbro: (just reading the cheat sheet, found out its a critical vulnerability) crap, alr I'll talk to the owner & see what I can do
Favna
Favnaβ€’6mo ago
I also see other stuff where I'm like "why" but I won't critique code endlessly, helps no one rn
static
staticOPβ€’6mo ago
this is surpising news ngl, Im glad you caught onto it
Favna
Favnaβ€’6mo ago
s!ev this.container.stores.get('routes')
Skyra
Skyraβ€’6mo ago
Output: ⏱ 890.26μs
RouteStore(15) [Map] {
'callback' => [PluginRoute],
'logout' => [PluginRoute],
'oauthUser' => [UserRoute],
'languages' => [UserRoute],
'user' => [UserRoute],
'twitchEventSubVerify' => [UserRoute],
'roles' => [UserRoute],
'role' => [UserRoute],
'member' => [UserRoute],
'channels' => [UserRoute],
'channel' => [UserRoute],
'guildSettings' => [UserRoute],
'guild' => [UserRoute],
'main' => [UserRoute],
'commands' => [UserRoute],
Constructor: [class Route extends Piece],
name: 'routes',
paths: [Set],
strategy: [LoaderStrategy],
table: [Collection [Map]],
[Symbol(@​sapphire/pieces:ManuallyRegisteredPieces)]: [Map]
}
RouteStore(15) [Map] {
'callback' => [PluginRoute],
'logout' => [PluginRoute],
'oauthUser' => [UserRoute],
'languages' => [UserRoute],
'user' => [UserRoute],
'twitchEventSubVerify' => [UserRoute],
'roles' => [UserRoute],
'role' => [UserRoute],
'member' => [UserRoute],
'channels' => [UserRoute],
'channel' => [UserRoute],
'guildSettings' => [UserRoute],
'guild' => [UserRoute],
'main' => [UserRoute],
'commands' => [UserRoute],
Constructor: [class Route extends Piece],
name: 'routes',
paths: [Set],
strategy: [LoaderStrategy],
table: [Collection [Map]],
[Symbol(@​sapphire/pieces:ManuallyRegisteredPieces)]: [Map]
}
Favna
Favnaβ€’6mo ago
anyway it's odd that it's empty for you at least callback and logout should be there because those are part of the plugin
static
staticOPβ€’6mo ago
Yeah its there
Favna
Favnaβ€’6mo ago
this showed 0 entries tho?
static
staticOPβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
can you try all those curl attempts again but with curl -I -X POST localhost:3001/v1/callback and the variants?
static
staticOPβ€’6mo ago
I'm probably gonna make a new bot but that'll take a while & I'm guessing he wants to take the risk of the codebase currently Alright
Favna
Favnaβ€’6mo ago
it should at least give a 400 bad request
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
πŸ€”
Favna
Favnaβ€’6mo ago
if I generate a bot with the CLI (complete template) and run it then I can query curl -I -X GET localhost:3001/hello-world just fine. This is locally though but I have no doubts that if I'd dockerize this and map port 3001 it would work.
No description
Favna
Favnaβ€’6mo ago
so at least it should work
static
staticOPβ€’6mo ago
this is so stressful
static
staticOPβ€’6mo ago
what could I be doing wrong?
static
staticOPβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
okay but now if I set prefixes it doesnt hm
static
staticOPβ€’6mo ago
logging it here before i log in wouldnt affect it right what if I remove the prefix?
Favna
Favnaβ€’6mo ago
granted IMHO versioning an API inside a discord bot is kind of silly anyway because you're more than likely the only consumer of the API (as in, no external users) but maybe that's not the case for this bot oh ahahahahah
static
staticOPβ€’6mo ago
Yeah, this was my first time ever seeing something like this but I found it cool. I know the previous dev - is that good?
Favna
Favnaβ€’6mo ago
change the prefix to /v1/
Favna
Favnaβ€’6mo ago
No description
Favna
Favnaβ€’6mo ago
and if you keep the v1/test in the route (so not dropping the v1 in there) then it would've been
No description
static
staticOPβ€’6mo ago
wow.
Favna
Favnaβ€’6mo ago
so prefix to /v1/ and remove v1/ from src/routes/test.route.ts. Then it should become :3001/v1/test
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
should I just keep it /
Favna
Favnaβ€’6mo ago
@KaydaFox @drainpixie
static
staticOPβ€’6mo ago
since the v1 folder? this is very embarrasing
Favna
Favnaβ€’6mo ago
Sapphire doesn't account for folder names for the routes only the name of the file
static
staticOPβ€’6mo ago
ah okay @Boomeravna your amazing man, would it still work the same if I added a domain?
Favna
Favnaβ€’6mo ago
it should yeah, if you setup the domain routing properly ofc btw are you using that digitalocean on a GH education plan or just paying for it out of pocket? because DO is one of the more expensive VPS providers im asking because if this is the only thing running on it for now and you're paying for it you may want to consider switching to another provider first
static
staticOPβ€’6mo ago
:wut: what I'm paying out of pocket...
Favna
Favnaβ€’6mo ago
look at what you get for 4 euros a month for DO (left) vs Netcup (right)
No description
No description
static
staticOPβ€’6mo ago
I tried searching better vps yesterday, but I wasn't too sure if cheaper = worse quality & some youtuber a few years ago told me that do is what I should use
drainpixie
drainpixieβ€’6mo ago
they're probably sponsored most favoured VPS providers by youtubers are just sponsors
Favna
Favnaβ€’6mo ago
most of us here use Netcup they're also EU based which is based because of EU privacy laws
static
staticOPβ€’6mo ago
do they accept USD or is it only for EU?
Favna
Favnaβ€’6mo ago
yes they do
static
staticOPβ€’6mo ago
dang.. wish I wasnt so gullible
Favna
Favnaβ€’6mo ago
you pay with paypal or credit card so it's auto converted not sure if they support bank transfer for US residents though nor do I know about debit cards because the US type of debit card doesnt exist in The Netherlands
static
staticOPβ€’6mo ago
ah okay, I might be able to do paypal in that case
Favna
Favnaβ€’6mo ago
GitHub
fix(api): automatically append / to an api prefix when it's not set...
I'm not sure if this counts as a breaking change, @vladfrangu your call. If it does count as a breaking change then I'd also like to add full file-based routing before the next major, that ...
Favna
Favnaβ€’6mo ago
no idea which message to mark as the answer tho
static
staticOPβ€’6mo ago
Any other alternatives? I guess I need to wait for them to verify my details
Favna
Favnaβ€’6mo ago
all providers should have to wait for verification because you're engaging in a legally binding contract. Any provider that doesn't verify is an automatic red flag
static
staticOPβ€’6mo ago
glad that this is getting added! really? out of curiosity, how come digital ocean never does?
Favna
Favnaβ€’6mo ago
something something big corpo's get away with scummy business practises, thanks capatalism something something
static
staticOPβ€’6mo ago
ah makes sense how long does it usaully take to be approved?
Favna
Favnaβ€’6mo ago
bout a day at most it's nearly 12 am for Austria right now so give it maybe 12ish hours at minimum
static
staticOPβ€’6mo ago
ah alright @Boomeravna quick question, is there anything specific on the docs for configuring domain names? I know with nginx you'd need to but was curious how sapphire automatically handles that
Favna
Favnaβ€’6mo ago
sapphire doesnt it's all server side stuff
static
staticOPβ€’6mo ago
alright good to know appreciate you all @Boomeravna last question, would changing the port to 3000 be the main port?
Favna
Favnaβ€’6mo ago
wdym?
static
staticOPβ€’6mo ago
like, instead of having to do http://159.89.84.165:3001/v1/test could I change it to http://159.89.84.165/v1/test? I'm trying to change it to work on a domain & I'm not too skilled in networking, I can't seem to have the IP of the a record point to 3001 nvm might be something for nginx
Favna
Favnaβ€’6mo ago
the default http port is port 80
Favna
Favnaβ€’6mo ago
How To Configure Nginx as a Reverse Proxy on Ubuntu 22.04 | Digital...
This tutorial will demonstrate how to set up a reverse proxy using Nginx, a popular web server and reverse proxy solution. You will install Nginx, configure …
Favna
Favnaβ€’6mo ago
also I recommend putting the domain behind a Cloudflare DNS so you can secure it with SSL. Not having HTTPS in anno 2024 is just plain bad.
static
staticOPβ€’6mo ago
yeah, i was just gonna use lets encrypt, I had an issue getting cloudflare actually work with my ip and now i got it working just assumed the entire issue was a cloudflare issue but thanks Quick question
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Is this the right route?
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
Returns null
static
staticOPβ€’6mo ago
however test returns this
No description
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
api: {
listenOptions: {
port: 3000,
host: "0.0.0.0",
},
prefix: "/v1/",
origin: "*",
},
api: {
listenOptions: {
port: 3000,
host: "0.0.0.0",
},
prefix: "/v1/",
origin: "*",
},
Favna
Favnaβ€’6mo ago
Remove the leading slash, because you added it to prefix you're now creating //
static
staticOPβ€’6mo ago
Sorry for me constantly bugging you, but I got it to work for the tickets route, however doesn't seem to work for the sellapp
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
No description
static
staticOPβ€’6mo ago
compared to sellapp
No description
static
staticOPβ€’6mo ago
same everything nvm..
Want results from more Discord servers?
Add your server