Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
6d5c0d59
Commit
6d5c0d59
authored
Jan 29, 2021
by
Muhammad Rafif Elfazri
Browse files
Change route for google callback api
parent
894f5bde
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/diskuy_web/router.ex
View file @
6d5c0d59
...
...
@@ -5,6 +5,10 @@ defmodule DiskuyWeb.Router do
plug
DiskuyWeb
.
Auth
.
Pipeline
end
pipeline
:auth_token
do
plug
DiskuyWeb
.
Auth
.
PipelineAuthToken
end
pipeline
:api
do
plug
CORSPlug
,
origin:
"*"
plug
:accepts
,
[
"json"
]
...
...
@@ -53,10 +57,10 @@ defmodule DiskuyWeb.Router do
end
scope
"api/auth
/google
"
,
DiskuyWeb
do
pipe_through
:api
get
"/callback"
,
UserController
,
:callback
options
"/callback"
,
UserController
,
:options
scope
"
/
api/auth"
,
DiskuyWeb
do
pipe_through
[
:api
,
:auth_token
]
get
"/
google/
callback"
,
UserController
,
:callback
options
"/
google/
callback"
,
UserController
,
:options
end
# Enables LiveDashboard only for development
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment