summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-22 18:43:08 +0200
committerGitHub <noreply@github.com>2021-06-22 18:43:08 +0200
commite52597798199d9de8a791723ef6ec37ce08703aa (patch)
tree0b4b14896629a76ee740efdb890d657d15f88b78 /src/Server.ts
parentMerge pull request #158 from fosscord/l10n_master (diff)
parent:art: clean up code (diff)
downloadserver-e52597798199d9de8a791723ef6ec37ce08703aa.tar.xz
Merge pull request #157 from Umimaso/widget
feat: add widget endpoints, routing for unversioned api requests
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 5ae65918..452bc1fe 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -94,6 +94,7 @@ export class FosscordServer extends Server { this.app = prefix; this.routes = await this.registerRoutes(path.join(__dirname, "routes", "/")); + app.use("/api", prefix); // allow unversioned requests app.use("/api/v8", prefix); this.app = app; this.app.use(ErrorHandler);