taO
taO
SIASapphire - Imagine a framework
Created by taO on 5/22/2023 in #sapphire-support
Plugin API - Origin
If you had to had to build the logic for the API to at least accept one other URL to the allowed origins, where would you start? I'm struggling to understand where the plugin API is setting things up. Edit: Just found PluginMiddleware in Headers. It should be this one right?
14 replies
Dynamic route not working
I am currently utilizing the plugin-api with the following versions: - @sapphire/framework": "^4.2.2 - @sapphire/plugin-api": "^5.0.2" Prior to updating to the most recent version, everything was functioning without issue. However, after updating, when I set a route as anyRoute/:code, attempting to access it results in a 404 error. On the other hand, if I set the route to anyRoute, I am able to access it without any problems. Example:
public constructor(context: Route.Context, options: Route.Options) {
super(context, {
...options,
route: 'redeemcode/:code',
} );
}
public constructor(context: Route.Context, options: Route.Options) {
super(context, {
...options,
route: 'redeemcode/:code',
} );
}
7 replies
Error When trying to getString.
No description
8 replies