Skip to content

Commit

Permalink
adding payment css
Browse files Browse the repository at this point in the history
  • Loading branch information
NebraskyTheWolf committed Jan 27, 2024
1 parent 18fe673 commit ccea32b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src/api/website/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,13 @@ export default class WebsiteServer {

public initServer() {
app.use('/dashboard/', new CAuthMiddleware().handle, new Dashboard().routing())
app.use('/shop/', new CAuthMiddleware().handle, new Shop().routing())
app.use('/shop/', new Shop().routing())
app.use('/admin/', new Admin().routing())

this.routes.getAll().forEach((route) => {
app.use('/', route.routing())
})

app.use(function (req, res, next) {
res.status(404).render('dashboard/views/errors/404')
})

this.server.listen(2443)
}
}
2 changes: 1 addition & 1 deletion src/api/website/middleware/CAuthMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class CAuthMiddleware extends BaseMiddleware {
super("ClientAuthentication", "Authentication middleware for the website")
}
public async handle(request: CustomRequest, response: CustomResponse, next) {
if (request.isAuthenticated()) {
if (request.user) {
next()
} else {
return response.redirect("https://www.riniya.uk/user/login")
Expand Down
10 changes: 7 additions & 3 deletions src/api/website/views/commands.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ html(lang='en')
div
include layouts/navbar

include hero/invite

include features/commands
section.hero.bg-base.is-fullheight
.hero-body
div#particles-js(style='position: relative;')
include features/commands
.has-text-centered(data-tippy-content='Scroll Down')
a(href='#features')
i.fa-solid.fa-circle-chevron-down.fa-lg.vert-move2.has-text-white

include layouts/footer

Expand Down

0 comments on commit ccea32b

Please sign in to comment.