This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SESSION_SECRET=Hu7Fj(%^wV_>h%FDb( | |
NODE_ENV=development | |
USERNAME=postgres | |
PASSWORD=prasroot | |
HOST=127.0.0.1 | |
DATABASE=test | |
DIALECT=postgres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import uuid from './Uuid' | |
let http = axios.create() | |
let httpHandler = { | |
...http, | |
get (url, options = {}) { | |
return http.get(url, { | |
...options, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axios.interceptors.response.use(function (response) { | |
return response; | |
}, function (error) { | |
if (error.response.status === 401) { | |
// Log Out | |
} | |
return Promise.reject(error); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:demo/profile.dart'; | |
import 'package:demo/second.dart'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |