Commit dda20fef authored by Thor-Herman's avatar Thor-Herman
Browse files

Add axiosREST #2

parent aa3062cd
import axios from 'axios';
const prod = {
url: 'http://it2810-75.idi.ntnu.no:8000',
};
const dev = {
url: 'http://127.0.0.1:8000',
// url: 'http://localhost:8000',
};
export const config = process.env.NODE_ENV === 'development' ? dev : prod;
export default axios.create({baseURL: config.url});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment