<?php
/**
* Index Controller
*
* @author happyoniens
* @author coeci
*
*/

class indexController{
  public static function index(){
    Flight::redirect('/post/1');
    $posts = new postController();
    $posts = $posts->getAllPosts();
    Flight::util()->render("index",["posts"=>$posts]);
  }

  public static function post($id){
    $posts = new postController();
    $post = $posts->getPostWithId($id);
    Flight::util()->render("post",["post"=>$post]);
  }
}

<?php
/**
* Index Controller
*
* @author happyoniens
* @author coeci
*
*/

class indexController{
  public static function index(){
    $posts = new postController();
    $posts = $posts->getAllPosts();
    Flight::util()->render("index",["posts"=>$posts]);
  }

  public static function post($id){
    $posts = new postController();
    $post = $posts->getPostWithId($id);
    Flight::util()->render("post",["post"=>$post]);
  }
}

Revert "Changed Baseurl to /Blog only"
Revert "Changed Baseurl to /Blog only"

This reverts commit 9ce70e80a7b65c20a242b400cdcca661c9603515.
