summaryrefslogtreecommitdiffstats
path: root/index.php
blob: 1fadfc81273555247b94e2a7447b81a744fb9f4d (plain)
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
<?php

/**
* ownCloud - News app
*
* @author Alessandro Cosentino
* Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com>
*
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file
*
*/

require_once OC_App::getAppPath('news') . '/controllers/controller.php';
require_once OC_App::getAppPath('news') . '/controllers/news.controller.php';

OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('news');
OCP\App::setActiveNavigationEntry('news');

$controller = new OCA\News\NewsController();

// routes
if(isset($_GET['jstest'])){
	$controller->javascriptTests();
} else {
	$controller->index();
}