Call Api Function in FrontEnd

  • Hi, friends


    How can i call a function on my API file from my site (frontend) ... I try but always return NO Authorized. Where modifiy permission for that? thanks


    On my vue i have a method for call that function


    Code
    1. getActivities:function() {
    2. this.$http.get('api/appointments/appointment/getActivities').then(res => {
    3. this.activities = res.data.activities;
    4. });
    5. },

    This is for my frontend, when im logged on my site all its ok but when im logout then return NO Authorized.


    thanks.