forked from unimatrix/web
Unify staff and public government directories with Order artwork and shared banners
This commit is contained in:
parent
30bb09ad6b
commit
8f3c7e06c5
1 changed files with 139 additions and 15 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {startNativeSyncRetryWorker} from './native-sync-outbox.mjs';
|
||||
import {createPublicGovernment} from './public-government.mjs';
|
||||
import {createMemorials} from './memorials.mjs';
|
||||
import {initializeLifeStatus} from './life-status.mjs';
|
||||
import {SHARED_HEADER} from '../scripts/portal-navigation.mjs';
|
||||
|
|
@ -30,6 +31,7 @@ export function createApplication(db,settings={}) {
|
|||
const gitIdentity=createGitIdentityRoute(db,settings,origin);
|
||||
const worldStatus=createWorldStatus(settings);
|
||||
const publicRoster=createPublicStaffRoster(db);const memorials=createMemorials(db,settings);
|
||||
const publicGovernment=createPublicGovernment(db);
|
||||
const contact=createContact(settings);
|
||||
const gameLink=createGameLink(db,settings,origin);
|
||||
const rewards=createCommunityRewards(db,settings,origin);
|
||||
|
|
@ -55,6 +57,7 @@ export function createApplication(db,settings={}) {
|
|||
if(url.pathname==='/api/game-link'||url.pathname.startsWith('/api/game-link/'))return gameLink(request);
|
||||
if(url.pathname.startsWith('/api/contact/'))return contact(request);
|
||||
if(url.pathname==='/api/staff/roster')return publicRoster(request);
|
||||
if(url.pathname==='/api/public/government')return publicGovernment(request);
|
||||
if(url.pathname==='/api/companies'){
|
||||
if(request.method!=='GET')return Response.json({message:'Method not allowed'},{status:405});
|
||||
return Response.json({companies:await listPublicCompanies(db)},{headers:{'Cache-Control':'no-store'}});
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff