feat: AI context, Webhooks, Kanban drag-drop, and UI fixes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
async function checkToken() {
|
||||
const url = 'http://git.a-crm.controlsystem.kz';
|
||||
const token = '1b3d0d3b5391c67ead8f8dc7380fb7f07434fc64';
|
||||
|
||||
const res = await fetch(`${url}/api/v1/user`, {
|
||||
headers: { 'Authorization': `token ${token}` }
|
||||
});
|
||||
if (res.ok) {
|
||||
const user = await res.json();
|
||||
console.log('Token belongs to:', user.username);
|
||||
} else {
|
||||
console.error('Failed to check token');
|
||||
}
|
||||
}
|
||||
checkToken();
|
||||
Reference in New Issue
Block a user