That's a spicy meatball
* APIUtils additions * Socket and web server listen on dedicated ports (see denoland/deno socket issue created by ZombieB1309 on GitHub) * Coach and Server created automatically (untested) * Profile content functions split into 'managers' * Progression temporary implementation * Settings placed into profile content manager * Relationships and messages return temporary empty array * Socket targets defined, message delivery to target, exec returned (goes unused for now)
This commit is contained in:
@@ -2,7 +2,7 @@ import { APIUtils } from "../apiutils.ts";
|
||||
import { Config } from "../config.ts";
|
||||
|
||||
const config = Config.getConfig() as Config.GalvanicConfiguration;
|
||||
const protocol = config.web.securepublichost ? "https" : "http";
|
||||
const protocol = config.web.api.securepublichost ? "https" : "http";
|
||||
|
||||
export const route = APIUtils.createRouter("/ns");
|
||||
|
||||
@@ -21,17 +21,17 @@ type NameserverHosts = {
|
||||
};
|
||||
|
||||
const nameserver: NameserverHosts = {
|
||||
Auth: `${protocol}://${config.web.publichost}/auth`,
|
||||
API: `${protocol}://${config.web.publichost}`,
|
||||
WWW: `${protocol}://${config.web.publichost}`,
|
||||
Notifications: `${protocol}://${config.web.publichost}/notify`,
|
||||
Images: `${protocol}://${config.web.publichost}/img`,
|
||||
CDN: `${protocol}://${config.web.publichost}/cdn`,
|
||||
Commerce: `${protocol}://${config.web.publichost}/commerce`,
|
||||
Matchmaking: `${protocol}://${config.web.publichost}/match`,
|
||||
Storage: `${protocol}://${config.web.publichost}/storage`,
|
||||
Chat: `${protocol}://${config.web.publichost}/chat`,
|
||||
Leaderboard: `${protocol}://${config.web.publichost}/leaderboard`,
|
||||
Auth: `${protocol}://${config.web.api.publichost}/auth`,
|
||||
API: `${protocol}://${config.web.api.publichost}`,
|
||||
WWW: `${protocol}://${config.web.api.publichost}`,
|
||||
Notifications: `${protocol}://${config.web.api.publichost}/notify`,
|
||||
Images: `${protocol}://${config.web.api.publichost}/img`,
|
||||
CDN: `${protocol}://${config.web.api.publichost}/cdn`,
|
||||
Commerce: `${protocol}://${config.web.api.publichost}/commerce`,
|
||||
Matchmaking: `${protocol}://${config.web.api.publichost}/match`,
|
||||
Storage: `${protocol}://${config.web.api.publichost}/storage`,
|
||||
Chat: `${protocol}://${config.web.api.publichost}/chat`,
|
||||
Leaderboard: `${protocol}://${config.web.api.publichost}/leaderboard`,
|
||||
};
|
||||
|
||||
route.router.get("*", (_rq, rs) => {
|
||||
|
||||
Reference in New Issue
Block a user