mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-10 17:09:42 +00:00
Collect account balances, optimized.
This commit is contained in:
33
resources/views/test/api-test.twig
Normal file
33
resources/views/test/api-test.twig
Normal file
@@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Firefly III API test</title>
|
||||
<base href="{{ route('index', null, true) }}/">
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Hi there,
|
||||
</p>
|
||||
<p>
|
||||
This page is created to do some basic API testing. It's not very exciting, is it?
|
||||
</p>
|
||||
<script src="v1/js/app.js?v={{ FF_VERSION }}" type="text/javascript" nonce="{{ JS_NONCE }}"></script>
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
$(function () {
|
||||
"use strict";
|
||||
console.log('Hello from the API test page!');
|
||||
$.ajax({
|
||||
url: 'api/v1/accounts?size=50&date=2025-08-06',
|
||||
type: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,2 +0,0 @@
|
||||
list-length: {{ listLength }}
|
||||
user-email: {{ Auth.user.email }}
|
||||
Reference in New Issue
Block a user