add version
This commit is contained in:
parent
ff44a2f69f
commit
248f382276
6 changed files with 37 additions and 9 deletions
16
src/initApp.ts
Normal file
16
src/initApp.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { initUser } from './app/user/user.ts'
|
||||
import { setGlobal } from './app/femtoApp.ts'
|
||||
import { PostsService } from './app/feed/posts/postsService.ts'
|
||||
import { MediaService } from './app/media/mediaService.ts'
|
||||
import { AuthService } from './app/auth/authService.ts'
|
||||
|
||||
export function initApp() {
|
||||
setGlobal('version', import.meta.env.VITE_FEMTO_VERSION)
|
||||
initUser()
|
||||
|
||||
const postService = new PostsService()
|
||||
const mediaService = new MediaService()
|
||||
const authService = new AuthService()
|
||||
|
||||
return { postService, mediaService, authService }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue