Skip to content

Commit

Permalink
PP-13312 route, controller and template (#4367)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-peacock-gds authored Dec 2, 2024
1 parent e54dee6 commit 03e1350
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { response } = require('@utils/response')

function get (req, res) {
response(req, res, 'simplified-account/settings/card-types/index', { })
}

module.exports = {
get
}
1 change: 1 addition & 0 deletions app/controllers/simplified-account/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ module.exports.emailNotifications = require('./email-notifications/email-notific
module.exports.stripeDetails = require('./stripe-details/stripe-details.controller')
module.exports.teamMembers = require('./team-members/team-members.controller')
module.exports.organisationDetails = require('./organisation-details/organisation-details.controller')
module.exports.cardTypes = require('./card-types/card-types.controller')
3 changes: 3 additions & 0 deletions app/simplified-account-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ simplifiedAccount.get(paths.simplifiedAccount.settings.organisationDetails.index
simplifiedAccount.get(paths.simplifiedAccount.settings.organisationDetails.edit, enforceLiveAccountOnly, permission('merchant-details:update'), serviceSettingsController.organisationDetails.edit.get)
simplifiedAccount.post(paths.simplifiedAccount.settings.organisationDetails.edit, enforceLiveAccountOnly, permission('merchant-details:update'), serviceSettingsController.organisationDetails.edit.post)

// card types
simplifiedAccount.get(paths.simplifiedAccount.settings.cardTypes.index, permission('transactions:read'), serviceSettingsController.cardTypes.get)

// stripe details
const stripeDetailsPath = paths.simplifiedAccount.settings.stripeDetails
const stripeDetailsRouter = new Router({ mergeParams: true })
Expand Down
8 changes: 8 additions & 0 deletions app/views/simplified-account/settings/card-types/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "../settings-layout.njk" %}

{% block settingsPageTitle %}
Card types
{% endblock %}

{% block settingsContent %}
{% endblock %}

0 comments on commit 03e1350

Please sign in to comment.