summaryrefslogtreecommitdiffstats
path: root/index.php
blob: f4c63d01c14becad2fd16e0bc965cd399c214923 (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('controllers/controller.php');
require_once('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();	
}