Problems with static routes with node, express

0

Good afternoon, I have a problem but I do not give with the joke, I'm linking a file called appAllMarket.js to my html but can not find the path, the problem that I think is that it is in a folder called models outside the folder public

The issue is that I do not want appAllMarket.js to be public, therefore I do not place it in public

jade file:

doctype html
html
    head
        meta(charset="UTF-8")
        meta(http-equiv="X-UA-Compatible", content="IE=edge")
        meta(name="viewport",content="width=device-width, initial-scale=1")
        meta(name="description",content="")
        meta(name="author",content="")

        //link(rel="icon",href="../../favicon.ico")

        title AllMarket
        link(rel='stylesheet', href='/stylesheets/estilos.css')
        link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css')
        //----------------------------------
        script(src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous")
        script(src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js")

        //------------------------------
        script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.17/angular.min.js")
        script(src="https://code.angularjs.org/1.2.21/angular-route.min.js")
        script(src='../models/appAllMarket.js')

    body
        block content

The error it throws is:

  

GET link 404 (Not Found)

    
asked by Daniel Enrique Rodriguez Caste 20.04.2017 в 01:02
source

0 answers