feat: add session-based authentication to the web interface and API routes
Build and Push / build (nucleus, amd64, linux) (push) Successful in 16s
Build and Push / build (nucleus, amd64, linux) (push) Successful in 16s
This commit is contained in:
@@ -69,6 +69,7 @@ const findings = ref([])
|
||||
const loadFindings = async () => {
|
||||
try {
|
||||
const res = await fetch(`/api/scans/${props.id}/findings`)
|
||||
if (res.status === 401) { window.location.href = '/login'; return }
|
||||
findings.value = await res.json() || []
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
||||
Reference in New Issue
Block a user