Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Attachments instead of files
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 1, 2019
commit c05c7d8b4eac4153cd68e9d98af1323f09428266
2 changes: 1 addition & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
* Files
*/
[
'name' => 'Files#copyFileToRoom',
'name' => 'Attachment#copyFileToAttachment',
'url' => '/api/{apiVersion}/chat/{token}/file',
'verb' => 'POST',
'requirements' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
use OCP\IConfig;
use OCP\IRequest;

class FilesController extends AEnvironmentAwareOCSController {
class AttachmentController extends AEnvironmentAwareOCSController {

/** @var ChatManager */
protected $chatManager;
Expand Down Expand Up @@ -70,7 +70,7 @@ public function __construct(
* @param string $path
* @return DataResponse
*/
public function copyFileToRoom(string $path): DataResponse {
public function copyFileToAttachment(string $path): DataResponse {
$participant = $this->getParticipant();
$room = $this->getRoom();

Expand Down