1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Update user endpoints

This commit is contained in:
Maksym Pavlenko
2018-12-21 22:05:17 -08:00
parent d53a3e2fe5
commit 86c56d6c4c
3 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ services:
- VIMEO_API_KEY={VIMEO_API_KEY}
- PATREON_CLIENT_ID={PATREON_CLIENT_ID}
- PATREON_SECRET={PATREON_SECRET}
- PATREON_REDIRECT_URL=https://podsync.net/patreon
- PATREON_REDIRECT_URL=https://podsync.net/user/patreon
- PATREON_WEBHOOKS_SECRET={PATREON_WEBHOOKS_SECRET}
- COOKIE_SECRET={COOKIE_SECRET}
- GIN_MODE=release

View File

@@ -71,9 +71,9 @@ func New(feed feedService, support patreonService, cfg *config.AppConfig) http.H
// Handlers
r.GET("/login", h.login)
r.GET("/logout", h.logout)
r.GET("/patreon", h.patreonCallback)
r.GET("/user/login", h.login)
r.GET("/user/logout", h.logout)
r.GET("/user/patreon", h.patreonCallback)
r.GET("/api/ping", h.ping)
r.GET("/api/user", h.user)

View File

@@ -14,7 +14,7 @@
<div class="login-border">
<template v-if="!userId">
<a href="/login">
<a href="/user/login">
<i class="fa fa-unlock" aria-hidden="true"></i>
Login with Patreon to unlock features
</a>
@@ -24,7 +24,7 @@
</template>
<template v-else>
<a>Hey, <i class="fa fa-user-o" aria-hidden="true"></i> {{ fullName }}</a>
<a href="/logout"><i class="fa fa-power-off" aria-hidden="true"></i></a>
<a href="/user/logout"><i class="fa fa-power-off" aria-hidden="true"></i></a>
</template>
</div>