discord-dashboard
discord-dashboard copied to clipboard
not-detecting new ejs files
I made test-clones of manage.ejs and renamed them to avoid any conflicts foo.ejs/bar.ejs, and make some test linking to them in the manage.js but when I stop the bot and then start the bot, the foo and bar .ejs are not detected and redirects to the 404?
What am I missing? all 3 (manage/foo/bar) are all in the same folder and I have them linked accordingly:
<a href="/dashboard/server/<%= guild.id %>/foo" class="button is-medium is-rounded is-danger">
<i class="fa-solid fa-medal" style="padding-right: 5px;"></i> Foo ejs
</a>
</p>
<p class="control">
<a href="/dashboard/server/<%= guild.id %>/bar" class="button is-medium is-rounded is-danger">
<i class="fa-solid fa-medal" style="padding-right: 5px;"></i> Bar ejs
</a>
</p>
Did you add the paths to your routes/dashboard.js ?