Skip to content
Snippets Groups Projects
Select Git revision
  • 3961d0d60cc5bc9f29a8fbfc05e3403c22190a20
  • master default protected
  • JH0026
  • KJ04
  • JH0025
  • haram0003
  • haram0002
  • KJ03
  • JH0024
  • KJ01
  • JH0023
  • style
  • attractionlist
  • makeplan
  • JH0020
  • modal_style
  • mypage_style
  • mainpage_style
  • attractionlist_style
  • attractionlist04
  • JH0016
21 results

API.js

Blame
  • API.js 472 B
    function httpTest ($http, host, data) {
      return $http({
        method: 'post',
        url: host + '/users/',
        data
      })
    }
    
    function loginAPI ($http, host, data) {
      return $http({
        method: 'post',
        url: host + '/users/login',
        data
      })
    }
    
    function registerAPI ($http, host, data) {
      return $http({
        method: 'post',
        url: host + '/users/signup',
        data
      })
    }
    
    // noinspection JSUnusedGlobalSymbols
    export default {
      httpTest,
      loginAPI,
      registerAPI
    }