'use strict'

module.exports.mount = app => {
	const routes = require('../routes')
	const authRoutes = require('../routes/auth')

	app.use('/', routes)
	app.use('/auth', authRoutes)
}

'use strict'

module.exports.mount = app => {
	const routes = require('../routes')
	const {
		loginRoutes,
		registerRoutes,
		secretRoutes
	} = require('../api/indexRoutes')

	app.use('/secret', secretRoutes)
	app.use('/auth/login', loginRoutes)
	app.use('/auth/register', registerRoutes)
}

Use the new rouotes in the app
Use the new rouotes in the app
