Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
Added project event hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAdnan committed Nov 9, 2023
1 parent 015da78 commit 40608ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projectEventHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { Application } from '@etherealengine/server-core/declarations'
import packageJson from './package.json'

const config = {
onInstall: async (app: Application) => {
onUpdate: async (app: Application) => {
await createLocations(app, packageJson.name)
},
onInstall: async (app: Application) => {
await app.service('route-activate').create({ project: packageJson.name, route: '/examples', activate: true })
}
} as ProjectEventHooks
Expand Down

0 comments on commit 40608ad

Please sign in to comment.