All files / lib/controllers index.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43                                            16x                                        
import { Express } from 'express'
import Crowi from 'server/crowi'
 
import Admin from './admin'
import Attachment from './attachment'
import Backlink from './backlink'
import Bookmark from './bookmark'
import Comment from './comment'
import Installer from './installer'
import Login from './login'
import Logout from './logout'
import Me from './me'
import Notification from './notification'
import Page from './page'
import Revision from './revision'
import Search from './search'
import Share from './share'
import ShareAccess from './shareAccess'
import Slack from './slack'
import User from './user'
import Version from './version'
 
export default (crowi: Crowi, app: Express) => ({
  Admin: Admin(crowi),
  Attachment: Attachment(crowi, app),
  Backlink: Backlink(crowi),
  Bookmark: Bookmark(crowi),
  Comment: Comment(crowi),
  Installer: Installer(crowi),
  Login: Login(crowi, app),
  Logout: Logout(),
  Me: Me(crowi, app),
  Notification: Notification(crowi),
  Page: Page(crowi),
  Revision: Revision(crowi),
  Search: Search(crowi),
  Share: Share(crowi),
  ShareAccess: ShareAccess(crowi),
  Slack: Slack(crowi),
  User: User(crowi),
  Version: Version(crowi, app),
})