branch aku jah deh
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
<!-- Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
|
||||
|
||||
<script src="{{ asset('js/jquery.min.js') }}"></script>
|
||||
|
||||
<!-- Styles -->
|
||||
<style>
|
||||
html, body {
|
||||
@@ -84,6 +86,9 @@
|
||||
Laravel
|
||||
</div>
|
||||
|
||||
<button onclick="login()">Login</button>
|
||||
<button onclick="logout()">Logout</button>
|
||||
|
||||
<div class="links">
|
||||
<a href="https://laravel.com/docs">Docs</a>
|
||||
<a href="https://laracasts.com">Laracasts</a>
|
||||
@@ -96,5 +101,44 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
|
||||
function login()
|
||||
{
|
||||
|
||||
$.ajax({
|
||||
method:'post',
|
||||
url: 'http://e-arrahn.test/api/mobile/login',
|
||||
data: {
|
||||
email : "afiqbasari@outlook.com",
|
||||
password : "Abc123"
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
$.ajax({
|
||||
method:'post',
|
||||
url: 'http://e-arrahn.test/api/mobile/logout',
|
||||
headers: {
|
||||
Authorization : "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiN2RiMTIxNjcwZDMxMzhkMDdkZTBmZGE0ODcwOGRkMDk2MTdlYzIyM2VkYjk5ZWE4ZTM5Mjg4YTk5YjQ4MDM3YjI0MWJjYzJkMWFmNzM3YzIiLCJpYXQiOjE2MDkyOTE5NzYsIm5iZiI6MTYwOTI5MTk3NiwiZXhwIjoxNjQwODI3OTc2LCJzdWIiOiIzOCIsInNjb3BlcyI6W119.XsDYDfxdb7DHHvF38nC7Mz-sKTZ1G5tLdHgOtdtPbK5-FaQyn9N4DuWsNjgLUS4gj2f3Hq4qojzCn8n3wunkLwA9WxguHKx2npvaw7lhyrLOLHeR2kpsnmHBN4xm9PHVjZyYJrdN6ud3rIfa01ZLRKiLcaPNEDIFpt6iPbemMa7bUTgUzQlKKgABwBcJeTgR5kqG79PP6j4twoysI6d03flugP5hkJOEnec-5zDOwIO8dbPcbkMOB4udJpSZ0CGcqqz7-8YXc_a-n_GRA3vRXjMh-3N58gLrw8RZv9Oj-A6l9KBoChJ7osLB47BcPppgdupzIsVGpmYaNfMisg6mbNVfml5x6WbhSv0xJ0fUvjQevuM3cLNQR4WZO_Y1YOCcDAyACvWSAUph8x53LXxZ-Z9tcBOZAWon1c5ISFTvwNhVn2zFTVH9iZddATOwRiapPwZxwZ2eZSlRqs6yiqBPC1BoVyhdxDG9AO4ua3QN-NIn7q16pqtEUmLcW2K9lVJXiz8Ux7nQSir1bn2UhiWjBA1mk2x9mTJpkWi_eRcG0rroqEEHNWIdfj0BJ27p2XGPo2u0dGYqXB5P9EKMs9d4_Px7q5Mo2euTaSsw8Z5gHXVvPk9eq9XBg0qkzlBe4VcH_ceyRO3oRSMra2Irl4tp2BuJB9Qleu1KVg4AxEgHlbA",
|
||||
Accept: "application/json",
|
||||
'Access-Control-Allow-Origin' : '*',
|
||||
'Access-Control-Allow-Methods':'GET,PUT,POST,DELETE,PATCH,OPTIONS'
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user