Explorar el Código

附件改名(补上路由)

kely hace 11 meses
padre
commit
c34b2e6062
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      routes/api.php

+ 1 - 0
routes/api.php

@@ -129,6 +129,7 @@ Route::middleware(['auth:sanctum'])->group(function () {
         Route::get("file/{object_type}/{object_id}", [API\FileController::class, "byObject"])->name("file.by-object");
         Route::post("file/{file}/download", [API\FileController::class, "download"])->name("file.download");
         Route::post("file/download-zip", [API\FileController::class, "downloadZip"])->name("file.download-zip");
+        Route::patch("file/{file}/change-name", [API\FileController::class, "changeName"])->name("file.change-name");
         Route::delete("file/{file}/destroy", [API\FileController::class, "destroy"])->name("file.destroy");
     });
 });