aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Server.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-06-20 18:53:59 +0900
committerPitu <[email protected]>2021-06-20 18:53:59 +0900
commit270b7acd4cf3e9c5ec0e7780ffdec0eba81fc0ad (patch)
tree642eb521001d45aa53a8b99124532f07311295fd /src/api/structures/Server.js
parentchore: add defaults for stats and other features (diff)
downloadhost.fuwn.me-270b7acd4cf3e9c5ec0e7780ffdec0eba81fc0ad.tar.xz
host.fuwn.me-270b7acd4cf3e9c5ec0e7780ffdec0eba81fc0ad.zip
chore: hardcode api location
Diffstat (limited to 'src/api/structures/Server.js')
-rw-r--r--src/api/structures/Server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js
index f584fe8..b63d06d 100644
--- a/src/api/structures/Server.js
+++ b/src/api/structures/Server.js
@@ -76,8 +76,8 @@ class Server {
for (const File of routes) {
try {
const route = new File();
- this.server[route.method](Util.config.routePrefix + route.path, route.authorize.bind(route));
- log.info(`Found route ${route.method.toUpperCase()} ${Util.config.routePrefix}${route.path}`);
+ this.server[route.method](`/api${route.path}`, route.authorize.bind(route));
+ log.info(`Found route ${route.method.toUpperCase()} /api${route.path}`);
} catch (e) {
log.error(`Failed loading route from file ${routeFile} with error: ${e.message}`);
}