SAML; Dashboard
This commit is contained in:
21
app/routing/routers/api/v1/profile.routes.js
Normal file
21
app/routing/routers/api/v1/profile.routes.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const profile_routes = {
|
||||
prefix: '/api/v1/profile',
|
||||
|
||||
middleware: [
|
||||
'auth:UserOnly',
|
||||
],
|
||||
|
||||
get: {
|
||||
'/:user_id': [ // user_id | 'me'
|
||||
'controller::api:v1:Profile.fetch',
|
||||
],
|
||||
},
|
||||
|
||||
patch: {
|
||||
'/:user_id': [ // user_id | 'me'
|
||||
'controller::api:v1:Profile.update',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = profile_routes
|
||||
Reference in New Issue
Block a user