-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement new REST API for admin-http and front page as single page application #21
Conversation
for the record, this is based on earlier convo is #11. haven't tried it yet, but conceptually it looks good to me. some questions though:
|
I'm aware that you are not to keen to go with angular, but if you have idea how to do it with something lighter, we can change it, I'm personally not big fan of backbone. Some answers:
You are right, but now it is single page, so there is no context, but you just execute some action.
Angular allows to include additional dependencies and in this way you express that your application is using ngResource (https://docs.angularjs.org/api/ngResource/service/$resource) and angular-ui (http://angular-ui.github.io/bootstrap/)
I tried to cover what come to my mind, so it should be ok.
I think it is more clean separation and you could image that different application could use REST to administration
it sound great, I'm not familiar with expvar, but I don't see why not do it. |
ok great. i will test this out and probably merge it later. |
I’d be happy to help if I only find some time and sufficient know-how :) Piotr Wielgolaski On Tuesday 30 September 2014 at 21:00, Dieter Plaetinck wrote:
|
if err != nil { | ||
return nil, &handlerError{nil, "Could not find entry " + key, http.StatusNotFound} | ||
} | ||
return make(map[string]string), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment why we need to make a new map here, what is it used for?
ok looks good, i merged it. however i have a few followup comments, for which i opened #25 |
As you can see I implemented REST api for routes and rewrite front application.
What do you think, would it be good to merge?