Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
581efa85
Commit
581efa85
authored
Jan 19, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
e750508d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
grafana
+1
-1
pkg/api/api.go
+3
-5
pkg/models/account_user.go
+2
-2
No files found.
grafana
@
590c3b4b
Subproject commit
efe7279eadeffc4ba9f5a7b340e4ecdf4d208218
Subproject commit
590c3b4b50195cacf02fbd0456d55ef69db16b79
pkg/api/api.go
View file @
581efa85
...
...
@@ -24,13 +24,13 @@ func Register(r *macaron.Macaron) {
r
.
Get
(
"/login"
,
Index
)
// authed views
r
.
Get
(
"/
user
/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/
profile
/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/datasources/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/
collaborato
rs/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/
use
rs/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/apikeys/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/account/import/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/admin"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/admin
/users
"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/dashboard/*"
,
reqSignedIn
,
Index
)
// sign up
...
...
@@ -49,8 +49,6 @@ func Register(r *macaron.Macaron) {
// account
r
.
Group
(
"/account"
,
func
()
{
//r.Get("/", GetAccount)
//r.Post("/", bind(m.UpdateAccountCommand{}), UpdateAccount)
r
.
Put
(
"/users"
,
bind
(
m
.
AddAccountUserCommand
{}),
AddAccountUser
)
r
.
Get
(
"/users"
,
GetAccountUsers
)
r
.
Delete
(
"/users/:id"
,
RemoveAccountUser
)
...
...
pkg/models/account_user.go
View file @
581efa85
...
...
@@ -58,8 +58,8 @@ type GetAccountUsersQuery struct {
// Projections and DTOs
type
AccountUserDTO
struct
{
AccountId
int64
`json:"account
_i
d"`
UserId
int64
`json:"user
_i
d"`
AccountId
int64
`json:"account
I
d"`
UserId
int64
`json:"user
I
d"`
Email
string
`json:"email"`
Login
string
`json:"login"`
Role
string
`json:"role"`
...
...
Write
Preview
Markdown
is supported
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