exit();
}
- public function servePackAction($hash)
+ public function serveSimfileOrPackAction($hash)
{
$file = $this->_fileRepository->findByHash($hash);
$quotaRemaining = $this->_userQuota->getCurrentUserQuotaRemaining();
->setBody(file_get_contents($zip))
->sendResponse();
}
-
+
private function notFound()
{
$this->_response->setHeader('HTTP/1.0 404 Not Found', 'Nothing to see here')
'/files/pack/:hash' => [\r
'method' => ['GET'],\r
'controller' => 'File',\r
- 'action' => 'servePack'\r
+ 'action' => 'serveSimfileOrPack'\r
+ ],\r
+ \r
+ '/files/simfile/:hash' => [\r
+ 'method' => ['GET'],\r
+ 'controller' => 'File',\r
+ 'action' => 'serveSimfileOrPack'\r
]\r
];\r