main
Last change
on this file since 24819a8 was 24819a8, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Authorization layer
|
-
Property mode
set to
100644
|
File size:
324 bytes
|
Line | |
---|
1 | import axios from "axios";
|
---|
2 | import data from "bootstrap/js/src/dom/data";
|
---|
3 | axios.defaults.baseURL = 'http://localhost:8080'
|
---|
4 | axios.defaults.headers.post["Content-Type"] = 'application/json'
|
---|
5 |
|
---|
6 | export const request = (method, url, data) => {
|
---|
7 | return axios({
|
---|
8 | method: method,
|
---|
9 | url: url,
|
---|
10 | data: data
|
---|
11 | })
|
---|
12 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.