fixxed js integration in html template

This commit is contained in:
florianspengler 2024-11-15 10:13:45 +01:00
parent e2033874dd
commit acb4622f56
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@
<h2>Collapsed Sidebar</h2> <h2>Collapsed Sidebar</h2>
<p>Content...</p> <p>Content...</p>
</div> </div>
<script src="/scripts/example.js"></script> <script src="example.js"></script>
</body> </body>
</html> </html>

View File

@ -15,8 +15,8 @@ app.use(session({
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({ extended: true })); app.use(express.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, 'static')));
app.use(express.static(path.join(__dirname, '/scripts'))); app.use(express.static(path.join(__dirname, '/scripts')));
app.use(express.static(path.join(__dirname, '/static')));
const getIndexRoute = require('./scripts/routes/other/route-index'); const getIndexRoute = require('./scripts/routes/other/route-index');