mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2025-09-05 18:20:45 +00:00
date stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { respond, getAll, getOne, sortByAndMapDate } from '../../lib/wp'
|
||||
import { respond, getAll, getOne, sortByDate } from '../../lib/wp'
|
||||
|
||||
export async function get(req, res) {
|
||||
const [type, slug] = req.params.slug
|
||||
@@ -8,6 +8,6 @@ export async function get(req, res) {
|
||||
respond(res, { data })
|
||||
} else {
|
||||
const data = await getAll(type)
|
||||
respond(res, { data: sortByAndMapDate(data) })
|
||||
respond(res, { data: sortByDate(data) })
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user