test shell script

This commit is contained in:
joseph le 2023-09-22 16:35:43 +07:00
parent 168e2bd4e0
commit 6772198ea3
2 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,7 @@ const ManageValues = () => {
<input placeholder="value" style={{margin:"0 5px", width:"50%"}} onChange={(e)=>{
setAddValue({...addValue, value: e.target.value})
}}></input>
<button style={{cursor:"pointer", backgroundColor:"green", color:"white"}} onClick={async()=>{
if(addValue.key !=="" && addValue.value!==""){
const res = await axios.post(addKeyValue,{key: addValue.key, value: addValue.value})
@ -102,6 +102,7 @@ const ManageValues = () => {
alert("Value is empty!")
}
}}>Add</button>
</div>
<div>
<Link to={"/logs"}> <button style={{color:"white", backgroundColor:"blue", cursor:"pointer"}}>List of detected files</button></Link>

View File

@ -177,6 +177,7 @@ Route.post("/api/addValue", async ({ request, response }) => {
}
});
Route.post("/api/gitea-webhook", ({ request, response }) => {
console.log("New event ---> ", request.header("x-gitea-event"));