-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70f00b8
commit 5ddce38
Showing
5 changed files
with
85 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package models | ||
|
||
import play.api.libs.json._ | ||
|
||
import java.time.OffsetDateTime | ||
|
||
case class ScanCommand( | ||
externalId: String, | ||
filename: String | ||
) | ||
object ScanCommand { | ||
implicit val fileFormat: OFormat[ScanCommand] = Json.format[ScanCommand] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
POST /api/file/scan controllers.AntivirusController.scanAndUpload() | ||
POST /api/file/scanFile controllers.AntivirusController.scanAndUpload() | ||
POST /api/file/scan controllers.AntivirusController.scan() | ||
POST /api/file/rescan controllers.AntivirusController.rescan() | ||
GET /api/file/:externalFileId controllers.AntivirusController.fileStatus(externalFileId :String) |