mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
|
@ -6,20 +6,21 @@ import expressValidator = require('express-validator')
|
|||
// TODO: use .validator when express-validator typing will have validator field
|
||||
const validator = expressValidator['validator']
|
||||
|
||||
const db = require('../initializers/database')
|
||||
import { database as db } from '../initializers/database'
|
||||
import {
|
||||
CONFIG,
|
||||
REMOTE_SCHEME,
|
||||
STATIC_PATHS,
|
||||
STATIC_MAX_AGE
|
||||
} from '../initializers'
|
||||
import { root } from '../helpers'
|
||||
|
||||
const clientsRouter = express.Router()
|
||||
|
||||
// TODO: move to constants
|
||||
const opengraphComment = '<!-- opengraph tags -->'
|
||||
const distPath = join(__dirname, '..', '..', 'client/dist')
|
||||
const embedPath = join(distPath, 'standalone/videos/embed.html')
|
||||
const distPath = join(root(), 'client', 'dist')
|
||||
const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
|
||||
const indexPath = join(distPath, 'index.html')
|
||||
|
||||
// Special route that add OpenGraph tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue