Skip to content

Can I have a front-end page/endpoing that is not reflecting api? #68

@mikaelhm

Description

@mikaelhm

I wanted to make a login page at /login, that I can redirect to whenever someone is not logged in.

I created a template front/login/getIndex.jade and setup the angularjs routes:

  .when('/login', {
    templateUrl: '/html/login/getIndex.html',
    controller: 'login'
  });

If I try to hit /login i get a 404. However, if I link to /login from within angularjs it works.

I then realized that the 404 was caused by the fact that I did not have a getIndex request handler defined in back/login. The server should properly log some error message in this case!

But, wouldn't it be nice to be able to have endpoints that does not require back-end data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions