These are chat archives for gin-gonic/gin

19th
Nov 2016
Dan
@dandevelo
Nov 19 2016 04:07
Anyone here used vue.js? Trying to figure how can I create a user login app with Gin as backend and Vue.js as frontend.
Andrey Nering
@andreynering
Nov 19 2016 10:21
I think, have a static page (without Vue) for login, and the it redirect to the page that contains your Vue app.
Dan
@dandevelo
Nov 19 2016 18:01
Thanks @andreynering. How can I make sure that only authenticated users can access the Vue page app?
Andrey Nering
@andreynering
Nov 19 2016 18:05
Will your static app be served by the backend? If so, you could just redirect to the login page if the user is not logged in